Anonymous avatar Anonymous committed 8f70a67

Moving _perform to ropemacs.refactor

Comments (0)

Files changed (4)

  Done
 ======
 
+- 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

ropemacs/__init__.py

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

ropemacs/refactor.py

             ropemacs._lisp_askdata, ['perform', 'cancel'],
             self._get_confs(), self._get_optionals())
         if action != 'perform':
-            lisp.message('Cancelled!')
+            ropemacs._message('Cancelled!')
             return
         changes = self._calculate_changes(result)
         self._perform(changes)
         pass
 
     def _perform(self, changes):
-        self.interface._perform(changes)
+        if changes is None:
+            return
+        self.project.do(changes)
+        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 ProjectModifiedEvent.java.
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.