Anonymous avatar Anonymous committed 4c22fcd

rope-change-signature: added in_hierarchy option

Comments (0)

Files changed (1)


                         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()
     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):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.