49 from ChangeOccurrencesDialog import ChangeOccurrencesDialog |
49 from ChangeOccurrencesDialog import ChangeOccurrencesDialog |
50 from HistoryDialog import HistoryDialog |
50 from HistoryDialog import HistoryDialog |
51 from ExtractDialog import ExtractDialog |
51 from ExtractDialog import ExtractDialog |
52 from InlineDialog import InlineDialog |
52 from InlineDialog import InlineDialog |
53 from MoveMethodDialog import MoveMethodDialog |
53 from MoveMethodDialog import MoveMethodDialog |
|
54 from MoveGlobalMethodDialog import MoveGlobalMethodDialog |
54 from MoveModuleDialog import MoveModuleDialog |
55 from MoveModuleDialog import MoveModuleDialog |
55 from UseFunctionDialog import UseFunctionDialog |
56 from UseFunctionDialog import UseFunctionDialog |
56 from IntroduceFactoryDialog import IntroduceFactoryDialog |
57 from IntroduceFactoryDialog import IntroduceFactoryDialog |
57 from IntroduceParameterDialog import IntroduceParameterDialog |
58 from IntroduceParameterDialog import IntroduceParameterDialog |
58 from ConfirmationDialog import ConfirmationDialog |
59 from ConfirmationDialog import ConfirmationDialog |
1207 self.__project, resource, offset) |
1208 self.__project, resource, offset) |
1208 except Exception as err: |
1209 except Exception as err: |
1209 self.handleRopeError(err, title) |
1210 self.handleRopeError(err, title) |
1210 return |
1211 return |
1211 |
1212 |
1212 self.dlg = MoveMethodDialog(self, title, mover, parent=self.__ui) |
1213 if isinstance(mover, rope.refactor.move.MoveGlobal): |
|
1214 self.dlg = MoveGlobalMethodDialog(self, title, mover, |
|
1215 self.__project, parent=self.__ui) |
|
1216 else: |
|
1217 self.dlg = MoveMethodDialog(self, title, mover, parent=self.__ui) |
1213 self.dlg.show() |
1218 self.dlg.show() |
1214 |
1219 |
1215 def __moveModule(self): |
1220 def __moveModule(self): |
1216 """ |
1221 """ |
1217 Private slot to handle the Move Current Module action. |
1222 Private slot to handle the Move Current Module action. |