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