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