Salome HOME
Gestion de la sélection dans l'arbre d'étude
[modules/adao.git] / src / daSalome / daGUI / daGuiImpl / adaoStudyEditor.py
index 81960873767f4d4ca83b3e850da2673fe064145d..aa0dc9adc31943682430122cad904c60d7bcb747 100644 (file)
@@ -59,18 +59,17 @@ def addInStudy(salomeStudyId, adaoCase):
 
     adaoRootEntry = studyEditor.findOrCreateComponent(
         moduleName    = adaoModuleHelper.componentName(),
-        componentName = adaoModuleHelper.componentUserName())
+        componentName = adaoModuleHelper.componentUserName(),
+        icon          = adaoModuleHelper.modulePixmap())
 
-    itemName  = adaoCase.get_name()
-    itemValue = str(adaoCase.get_filename())
+    itemName  = adaoCase.name
+    itemValue = adaoCase.filename
     itemType  = ADAO_ITEM_TYPES.ADAO_CASE
 
     salomeStudyItem = studyEditor.createItem(
         adaoRootEntry, itemName,
         comment = itemValue,
         typeId  = itemType)
-    # _MEM_ Note that we use the comment attribute to store the serialize
-    # description of the data.
 
     return salomeStudyItem
 
@@ -78,9 +77,9 @@ def updateItem(salomeStudyId, salomeStudyItem, adaoCase):
 
     studyEditor = studyedit.getStudyEditor(salomeStudyId)
 
-    if salomeStudyItem.GetName()[:-2] != adaoCase.get_name():
-      itemName  = adaoCase.get_name()
-      itemValue = adaoCase.get_filename()
+    if salomeStudyItem.GetName()[:-2] != adaoCase.name:
+      itemName  = adaoCase.name
+      itemValue = adaoCase.filename
     else:
       itemName  = salomeStudyItem.GetName()
       itemValue = adaoCase.get_filename()