Salome HOME
add method NameChanged to update title name
[modules/kernel.git] / src / KernelHelpers / KernelHelpersUseCases.cxx
index 7feaf8a2dafc67d0e137f3052e78fc82852b90e1..f408555f2c6416e924f864ffef45524892447f66 100644 (file)
@@ -60,8 +60,8 @@ bool TEST_getLifeCycleCORBA() {
   return true;
 }
 
-bool TEST_getStudyManager() {
-  SALOMEDS::Study_ptr myTestStudy = KERNEL::getStudyManager()->NewStudy("kerneltest");
+bool TEST_getStudy() {
+  SALOMEDS::Study_ptr myTestStudy = KERNEL::getStudy();
   if ( CORBA::is_nil(myTestStudy) ) {
     return false;
   }
@@ -70,9 +70,8 @@ bool TEST_getStudyManager() {
   myTestStudy->SetString("material","wood");
   myTestStudy->SetReal("volume",3.23);
 
-  // The study is characterized by an ID
-  int myTestStudyId = myTestStudy->StudyId();
-  LOG("TestComponentImpl::testkernel: study id = "<<myTestStudyId);
+  // The study with properties was opened
+  LOG("TestComponentImpl::testkernel: study with properties was opened");
   return true;
 }
 
@@ -114,7 +113,7 @@ bool TEST_getSalomeLauncher() {
 int main (int argc, char * argv[]) {
   TEST_corba();
   TEST_getLifeCycleCORBA();
-  TEST_getStudyManager();
+  TEST_getStudy();
   TEST_getSalomeLauncher();
   return 0;
 }