Software Pretty Printer JRefactory Printing Elixir Extensions Line Numbering Metrics Stub Generator Dev Utilities Requested Features Release Notes Download Contributors |  | ## Software::JRefactory - Undo |
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.
| Last Modified: July 7, 2000 |