]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Retablissement de la selection lors de l'activation du module
authorAndré Ribes <andre.ribes@edf.fr>
Thu, 24 Feb 2011 15:39:55 +0000 (16:39 +0100)
committerAndré Ribes <andre.ribes@edf.fr>
Thu, 24 Feb 2011 15:39:55 +0000 (16:39 +0100)
src/daSalome/daGUI/daEficasWrapper/adaoEficasWrapper.py
src/daSalome/daGUI/daGuiImpl/adaoGuiManager.py

index 5662506a0139415227be7ead208ddda1a40d42e4..3806147f8d1c244c8e3b151ebfc640fea1de5e9c 100644 (file)
@@ -151,6 +151,13 @@ class AdaoEficasWrapper(eficasSalome.MyEficas):
           break
       return rtn
 
+    def getCurrentEditor(self):
+      index = self.viewmanager.myQtab.currentIndex()
+      editor = None
+      if index >= 0:
+        editor = self.viewmanager.dict_editors[index]
+      return editor
+
 
 
 
index bce5d318f82ebe8131528b64e5e0bed427b69781..2fb51f579829113617b6636b348d79037784cbd0 100644 (file)
@@ -165,11 +165,15 @@ class AdaoCaseManager(EficasObserver):
     Cette méthode permet d'harmoniser la sélection dans l'étude
     grâce au tab courant d'Eficas
     """
-    adaoLogger.error("harmonizeSelectionFromEficas NOT YET IMPLEMENTED")
     if self.cases:
-      pass
       # 1: Get current tab index in Eficas
+      editor = self.eficas_manager.getCurrentEditor()
       # 2: sync with SALOME GUI is a tab is opened
+      if editor:
+        for case_editor, adao_case in self.cases.iteritems():
+          if case_editor is editor:
+            adaoGuiHelper.selectItem(adao_case.salome_study_item.GetID())
+            break
 
 #######
 #