Author:  Mike Atkinson Software
Release Notes
Download
Contributors

Previous Page

Software::JRefactory - Undo

Next Page

The refactoring tool now has the option of undoing a refactoring. When a refactoring is performed, the old copy of the file is saved with a number added. The refactoring tool can then restore the old state by deleting the new file and then renaming the old file.

A user interacts with undo by selecting Undo from the menu. (Under script for Elixir, under JRefactory for JBuilder, and Edit for the command line version.)

Once you exit the editor that performed the refactoring, the refactoring can no longer be undone. (At least at the moment.) Therefore there will eventually be a lot of extra files in your directory. To clean these up, simply execute:

java org.acm.seguin.refactor.undo.UndoCleaner [dir] where dir is an optional parameter specifying the directory to clean. If no directory is specified, the current directory is assumed.

Previous Page

Last Modified: October 7, 2003

Previous Page