RefactoringRope/MoveMethodDialog.py

changeset 55
d501156be247
parent 43
39924831c795
child 62
1077db8d0589
equal deleted inserted replaced
54:e795cb8240aa 55:d501156be247
76 def __updateUI(self): 76 def __updateUI(self):
77 """ 77 """
78 Private method to perform various UI updates. 78 Private method to perform various UI updates.
79 """ 79 """
80 self.__okButton.setEnabled( 80 self.__okButton.setEnabled(
81 self.attributeEdit.text() != "" and \ 81 self.attributeEdit.text() != "" and
82 self.methodEdit.text() != "") 82 self.methodEdit.text() != "")
83 83
84 def _calculateChanges(self, handle): 84 def _calculateChanges(self, handle):
85 """ 85 """
86 Protected method to calculate the changes. 86 Protected method to calculate the changes.
91 """ 91 """
92 try: 92 try:
93 newName = self.methodEdit.text() 93 newName = self.methodEdit.text()
94 if not newName: 94 if not newName:
95 newName = None 95 newName = None
96 changes = self.__mover.get_changes(self.attributeEdit.text(), 96 changes = self.__mover.get_changes(
97 newName, task_handle=handle) 97 self.attributeEdit.text(), newName, task_handle=handle)
98 return changes 98 return changes
99 except Exception as err: 99 except Exception as err:
100 self._refactoring.handleRopeError(err, self._title, handle) 100 self._refactoring.handleRopeError(err, self._title, handle)
101 return None 101 return None

eric ide

mercurial