RefactoringRope/RestructureDialog.py

changeset 46
a726d19facfc
parent 43
39924831c795
child 50
a29c3d2e6dc0
child 55
d501156be247
equal deleted inserted replaced
45:c840c6f95cea 46:a726d19facfc
7 Module implementing the Restructure dialog. 7 Module implementing the Restructure dialog.
8 """ 8 """
9 9
10 from PyQt4.QtCore import pyqtSlot 10 from PyQt4.QtCore import pyqtSlot
11 from PyQt4.QtGui import QDialogButtonBox, QAbstractButton 11 from PyQt4.QtGui import QDialogButtonBox, QAbstractButton
12
13 import rope.refactor.restructure
14 12
15 from Ui_RestructureDialog import Ui_RestructureDialog 13 from Ui_RestructureDialog import Ui_RestructureDialog
16 from RefactoringDialogBase import RefactoringDialogBase 14 from RefactoringDialogBase import RefactoringDialogBase
17 15
18 16
96 splitted = check.split(':', 1) 94 splitted = check.split(':', 1)
97 name = splitted[0].strip() 95 name = splitted[0].strip()
98 value = splitted[1].strip() 96 value = splitted[1].strip()
99 args[name] = value 97 args[name] = value
100 98
99 import rope.refactor.restructure
101 self._refactoring.getProject().validate( 100 self._refactoring.getProject().validate(
102 self._refactoring.getProject().root) 101 self._refactoring.getProject().root)
103 try: 102 try:
104 restructuring = rope.refactor.restructure.Restructure( 103 restructuring = rope.refactor.restructure.Restructure(
105 self._refactoring.getProject(), pattern, goal, 104 self._refactoring.getProject(), pattern, goal,

eric ide

mercurial