if res != 2: # l utilsateur a annule
if close_editor.fichier is None:
# Cas fichier vide
- print "cas fichier vide"
self.notifyObserver(EficasEvent.EVENT_TYPES.CLOSE, callbackId=close_editor)
else:
# Cas fichier existant
- print "cas fichier existant"
self.notifyObserver(EficasEvent.EVENT_TYPES.CLOSE, callbackId=close_editor)
#######
if editor is not self.eficas_editor:
self.eficas_editor = editor
# Connect to the jdc
- print self.eficas_editor.jdc
CONNECTOR.Connect(self.eficas_editor.jdc, "valid", self.editorValidEvent, ())
# Rq on notera que l'on utilise isvalid dans isOk
salome.sg.updateObjBrowser(0)
def selectItem(salomeStudyItem):
- print "selectItem", salomeStudyItem
if salome.sg is not None:
salome.sg.ClearIObjects()
salome.sg.AddIObject(salomeStudyItem)
break
def _processEficasCloseEvent(self, eficasWrapper, eficasEvent):
+ adaoLogger.debug("Destruction d'un cas")
editor = eficasEvent.callbackId
# Recuperation du cas
adao_case = self.cases[editor]
# Suppression de l'objet dans l'étude
adaoStudyEditor.removeItem(adao_case.salome_study_id, adao_case.salome_study_item)
- adaoGuiHelper.refreshObjectBrowser()
# Suppression du cas
- del self.cases[editor]
+ self.cases.pop(editor)
+ # Refresh GUI -> appelle currentSelectionChanged()
+ adaoGuiHelper.refreshObjectBrowser()
#######
#