Anonymous avatar Anonymous committed 8f70a67

Moving _perform to ropemacs.refactor

Comments (0)

Files changed (4)

+- specifying refactoring options : November 26, 2007
 - restructuring support : November 26, 2007
 - added ``rope-confirm-saving`` variable : November 26, 2007
 - only activating local keys in python mode : November 26, 2007
 > Public Release 0.2
-* specifying refactoring options
 * new file/directory/module/package; C-x p n [fdmp]
 * showing proposal type in code-assist


             for changes in self.project.history.redo():
-    def _perform(self, changes):
-        if changes is None:
-            return
-        self._reload_buffers(changes.get_changed_resources())
-        lisp.message(str(changes.description) + ' finished')
     def _get_region(self):
         offset1 = self._get_offset()
         return _ask(data.prompt, default=data.default, starting=data.starting)
+def _message(self, message):
+    lisp.message(message)
 DEFVARS = """\
 (defvar rope-confirm-saving t


             ropemacs._lisp_askdata, ['perform', 'cancel'],
             self._get_confs(), self._get_optionals())
         if action != 'perform':
-            lisp.message('Cancelled!')
+            ropemacs._message('Cancelled!')
         changes = self._calculate_changes(result)
     def _perform(self, changes):
-        self.interface._perform(changes)
+        if changes is None:
+            return
+        self.interface._reload_buffers(changes.get_changed_resources())
+        ropemacs._message(str(changes.description) + ' finished')
     def _get_confs(self):
         return self.confs
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.