| <!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"> |
| <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"> |
| <title> |
| Refactoring with preview |
| </title> |
| </head> |
| <body> |
| <h1> |
| Refactoring with preview |
| </h1> |
| <ol> |
| <li> |
| Activate a refactoring command. For example, rename a type by selecting it in the Outline view and choosing |
| <strong>Refactor</strong> > <strong>Rename</strong> from its pop-up menu. |
| </li> |
| <li> |
| The Refactoring Parameters page prompts you for information necessary for the action. For example, the Rename Type Refactoring dialog |
| asks you for the new name for the selected type. |
| </li> |
| |
| <li> Provide the necessary data on the parameters page, and then click <strong>Preview</strong>. |
| </li> |
| <li> |
| If problems are anticipated, then the problems page comes to the front to display them. |
| <ul> |
| |
| <li> If a fatal problem was anticipated, then only the <strong>Back</strong> |
| and <strong>Cancel</strong> buttons are enabled, and you are prevented |
| from carrying out the refactoring. If the problems are related to data |
| provided on the parameters page, click <strong>Back</strong> and attempt |
| to remedy the problem. Otherwise, click <strong>Cancel</strong> to close |
| the dialog. </li> |
| <li> If other kinds of problems were anticipated, you can click <strong>Continue</strong> |
| to acknowledge the problems and move on to the preview page. </li> |
| </ul> |
| The Refactoring Preview page opens. |
| </li> |
| |
| <li> Click <strong>OK</strong> to execute the refactoring and close the dialog. |
| </li> |
| </ol> |
| <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 border="0" src="../images/ngrelt.png" alt="Related tasks"> |
| </p> |
| <p> |
| <a href="tasks-82.htm">Refactoring without preview</a><br> |
| <a href="tasks-84.htm">Previewing refactoring changes</a><br> |
| <a href="tasks-100.htm">Undoing a refactoring operation</a><br> |
| <a href="tasks-101.htm">Redoing a refactoring operation</a> |
| </p> |
| <p> |
| <img border="0" src="../images/ngrelr.png" alt="Related reference"> |
| </p> |
| <p> |
| <a href="../reference/ref-menu-refactor.htm">Refactoring actions</a><br> |
| <a href="../reference/ref-117.htm">Refactoring dialogs</a><br> |
| <a href="../reference/ref-13.htm">Java preferences</a> |
| </p> |
| |
| </body> |
| </html> |
| |