Commits

Ali Gholami Rudi  committed 4c22fcd

rope-change-signature: added in_hierarchy option

  • Participants
  • Parent commits 9a1b8d0

Comments (0)

Files changed (1)

File ropemacs/refactor.py

         changers.append(rope.refactor.change_signature.
                         ArgumentReorderer(order, autodef='None'))
 
-        resources = _resources(self.project, values.get('resources'))
-        return self.changer.get_changes(changers, resources=resources,
-                                        task_handle=task_handle)
+        del values['signature']
+        return self.changer.get_changes(changers, task_handle=task_handle,
+                                        **values)
 
     def _get_confs(self):
         info = self.changer.get_definition_info()
                                          default=signature)}
 
     def _get_optionals(self):
-        return {'resources': self.resources_option}
+        opts = {'resources': self.resources_option}
+        if self.changer.is_method():
+            opts['in_hierarchy'] = dialog.Boolean('Rename methods in '
+                                                  'class hierarchy: ')
+        return opts
 
 
 class _GenerateElement(Refactoring):