]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
debug of load
authorasl <asl@opencascade.com>
Thu, 10 Dec 2009 11:19:22 +0000 (11:19 +0000)
committerasl <asl@opencascade.com>
Thu, 10 Dec 2009 11:19:22 +0000 (11:19 +0000)
src/SALOMEDS/SALOMEDS_StudyBuilder.cxx
src/SALOMEDS/SALOMEDS_StudyManager_i.cxx

index 890cf15e43161a1fcaa928a9b0123d351c1f19fa..5632eccabef35170d85dd6d9547cf59cd4386780 100644 (file)
@@ -215,8 +215,8 @@ void SALOMEDS_StudyBuilder::LoadWith(const _PTR(SComponent)& theSCO, const std::
     _corba_impl->LoadWith( aComponent, aDriver);
   }
 
-  SALOMEDS::Study_var aStudy = aComponent->GetStudy();
-  SALOME::Notebook_var aNotebookVar = aStudy->GetNotebook();
+  //SALOMEDS::Study_var aStudy = aComponent->GetStudy();
+  //SALOME::Notebook_var aNotebookVar = aStudy->GetNotebook();
   //SALOME_Notebook* aNotebook = dynamic_cast<SALOME_Notebook*>( aStudy->_default_POA()->reference_to_servant( aNotebookVar ) );
   //if( aNotebook )
   //  aNotebook->RebuildLinks();
index b0a7f22345ef22976102fc4d4d730207a0811c07..fb7b0bc9b1336078c6193667c95a85a4d2c092ed 100644 (file)
@@ -183,9 +183,15 @@ SALOMEDS::Study_ptr  SALOMEDS_StudyManager_i::Open(const char* aUrl)
   if(!_name_service->Change_Directory("/Study")) MESSAGE( "Unable to access the study directory" )
   else _name_service->Register(Study, CORBA::string_dup(aStudyImpl->Name().c_str()));
 
+
+  SALOMEDS::SComponent_ptr aNotebookComponent = Study->FindComponent( "NOTEBOOK" );
+  SALOMEDS::StudyBuilder_var aBuilder = Study->NewBuilder();
+  aBuilder->LoadWith( aNotebookComponent, SALOME_NotebookDriver::getInstance() );
+
+
   // Notebook creation
-  SALOME::Notebook_var aNotebookVar = Study->GetNotebook();
-  SALOME_Notebook* aNotebook = dynamic_cast<SALOME_Notebook*>(_poa->reference_to_servant( aNotebookVar._retn() ) );
+  //SALOME::Notebook_var aNotebookVar = Study->GetNotebook();
+  /*SALOME_Notebook* aNotebook = dynamic_cast<SALOME_Notebook*>(_poa->reference_to_servant( aNotebookVar._retn() ) );
 
   // Parsing of old style notebook data
   list<int> keys;
@@ -228,7 +234,7 @@ SALOMEDS::Study_ptr  SALOMEDS_StudyManager_i::Open(const char* aUrl)
         aNotebook->ParseOldStyleObject( aCompName, anEntry, aData );
       }
     }
-  }
+  }*/
 
   return Study._retn();
 }