<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1"> <TITLE>Software::JRefactory - Undo</TITLE> </HEAD> <BODY> <P> <TABLE BORDER="0" > <TR> <TD WIDTH="150" ALIGN="LEFT" VALIGN="TOP" ROWSPAN="3" BGCOLOR="#DDDDDD"> <IMG SRC="JRefactory.jpg" ALT="Author: Mike Atkinson"> <A HREF="chrissoft.html">Software</A> <BR> <UL> <LI> <A HREF="cspretty.html">Pretty Printer</A> <BR> <LI> JRefactory<BR> <LI> <A HREF="csprint.html">Printing</A> <BR> <LI> <A HREF="cselixirext.html">Elixir Extensions</A> <BR> <LI> <A HREF="cslineno.html">Line Numbering</A> <BR> <LI> <A HREF="csmetrics.html">Metrics</A> <BR> <LI> <A HREF="csstub.html">Stub Generator</A> <BR> <LI> <A HREF="csdevutil.html">Dev Utilities</A> <BR> <LI> <A HREF="csr-roadmap.html">Roadmap</A> <BR> <LI> <A HREF="csrtodo.html">Requested Features</A> <BR> </UL> <A HREF="csr-releasenotes.html">Release Notes</A> <BR> <A HREF="chrisdown.html"><B>Download</B></A> <BR> <B><A HREF="authors.html">Contributors</A></B> <BR> </TD> <TD WIDTH="35" ALIGN="LEFT" VALIGN="TOP"> <P><A HREF="csr-gui.html"><IMG SRC="left.gif" WIDTH="30" HEIGHT="30" ALIGN="BOTTOM" ALT="Previous Page" BORDER="2"></A> </TD> <TD ALIGN="CENTER"> <H2 ALIGN="CENTER">Software::JRefactory - Undo </TD> <TD WIDTH="35" ALIGN="RIGHT" VALIGN="TOP"> <P ALIGN="RIGHT"><A HREF="csr-output.html"><IMG SRC="right.gif" WIDTH="30" HEIGHT="30" ALIGN="BOTTOM" ALT="Next Page" BORDER="2"></A> </TD> </TR> <TR> <TD COLSPAN="3"> 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.<P> 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.)<P> 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:<P> <TT>java org.acm.seguin.refactor.undo.UndoCleaner [<EM>dir</EM>]</TT> where <EM>dir</EM> is an optional parameter specifying the directory to clean. If no directory is specified, the current directory is assumed.<P> </TD> </TR> <TR> <TD WIDTH="35"><A HREF="csr-gui.html"><IMG SRC="left.gif" WIDTH="30" HEIGHT="30" ALIGN="BOTTOM" ALT="Previous Page" BORDER="2"></A></TD> <TD ALIGN="CENTER"> <P ALIGN="CENTER"><FONT SIZE="2" COLOR="#AAAAAA">Last Modified: October 7, 2003</FONT> </TD> <TD WIDTH="35" ALIGN="RIGHT"> <P ALIGN="RIGHT"><A HREF="csr-output.html"><IMG SRC="right.gif" WIDTH="30" HEIGHT="30" ALIGN="BOTTOM" ALT="Previous Page" BORDER="2"></A> </TD> </TR> </TABLE> </BODY> </HTML>