Commits

Anonymous committed 8f70a67

Moving _perform to ropemacs.refactor

  • Participants
  • Parent commits c72347b

Comments (0)

Files changed (4)

File docs/done.txt

  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

File docs/todo.txt

 
 > Public Release 0.2
 
-* specifying refactoring options
 * new file/directory/module/package; C-x p n [fdmp]
 * showing proposal type in code-assist

File 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

File 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