116 Private method to handle the wizards action. |
116 Private method to handle the wizards action. |
117 """ |
117 """ |
118 editor = e5App().getObject("ViewManager").activeWindow() |
118 editor = e5App().getObject("ViewManager").activeWindow() |
119 |
119 |
120 if editor == None: |
120 if editor == None: |
121 E5MessageBox.critical(self.__ui, |
121 E5MessageBox.critical( |
|
122 self.__ui, |
122 self.trUtf8('No current editor'), |
123 self.trUtf8('No current editor'), |
123 self.trUtf8('Please open or create a file first.')) |
124 self.trUtf8('Please open or create a file first.')) |
124 else: |
125 else: |
125 code, ok = self.__callForm(editor) |
126 code, ok = self.__callForm(editor) |
126 if ok: |
127 if ok: |