| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> |
| <html> |
| <head> |
| <meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2005. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." > |
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
| <meta http-equiv="Content-Style-Type" content="text/css"> |
| <meta name="GENERATOR" content="Mozilla/4.76 [en] (Windows NT 5.0; U) [Netscape]"> |
| <title> |
| Undoing a refactoring operation |
| </title> |
| <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"> |
| </head> |
| <body> |
| <h1> |
| Undoing a refactoring operation |
| </h1> |
| <p> |
| The most recent refactoring can be undone as long as you have not modified any Java elements in the workbench. |
| After performing a refactoring operation, you can build the |
| project, run and debug it, and execute any test cases, and still undo the refactoring action. |
| </p> |
| <p> |
| To undo the most recent refactoring, select <strong>Edit</strong> > <strong>Undo</strong> from the menu bar. |
| </p> |
| <p> |
| <strong>Note</strong>: If the workbench contains unsaved files that affect undoing the refactoring, an error dialog appears. |
| The dialog contains a list of files that must be |
| reverted to their saved editions before the refactoring can be completed. |
| </p> |
| <p> |
| <img src="../images/ngrelc.png" alt="Related concepts" border="0" > |
| </p> |
| <p> |
| <a href="../concepts/concepts-9.htm">Refactoring support</a> |
| </p> |
| <p> |
| <img src="../images/ngrelt.png" alt="Related tasks" border="0" > |
| </p> |
| <p> |
| <a href="tasks-82.htm">Refactoring without preview</a><br> |
| <a href="tasks-83.htm">Refactoring with preview</a><br> |
| <a href="tasks-84.htm">Previewing refactoring changes</a><br> |
| <a href="tasks-101.htm">Redoing a refactoring operation</a> |
| </p> |
| <p> |
| <img src="../images/ngrelr.png" alt="Related reference" border="0" > |
| </p> |
| <p> |
| <a href="../reference/ref-menu-refactor.htm">Refactoring actions</a><br> |
| <a href="../reference/ref-117.htm">Refactoring dialog</a><br> |
| <a href="../reference/ref-13.htm">Java preferences</a> |
| </p> |
| |
| </body> |
| </html> |
| |