Salome HOME
Changement d'architecture pour la gestion du GUI
[modules/adao.git] / src / daSalome / daGUI / daGuiImpl / adaoStudyEditor.py
index 81960873767f4d4ca83b3e850da2673fe064145d..3bb857afd770b673c8d1a2c6d4af8480944c3205 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