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