| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//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"> |
| <title> |
| Renaming a field |
| </title> |
| <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"> |
| </head> |
| <body> |
| <h1> |
| Renaming a field |
| </h1> |
| You can rename a field by modifying its declaration in the compilation unit in which it is declared. However, if you also want to update all references to it, do one of the |
| following: |
| <ol> |
| <li> |
| In a Java view presenting fields (for example in the Outline view) select a field. |
| </li> |
| <li> |
| From the view's pop-up menu, select <strong>Refactor</strong> > <strong>Rename</strong> or select <strong>Refactor > Rename</strong> from the global menu bar. |
| </li> |
| </ol> |
| or |
| <ol> |
| <li> |
| In a Java editor, select a reference to the field (or the field's declaration). |
| </li> |
| <li> |
| From the editor's pop-up menu, select <strong>Refactor > Rename</strong> or select <strong>Refactor > Rename</strong> from the global menu bar. |
| </li> |
| </ol> |
| <p> |
| <br> |
| <img src="../images/ngrelr.png" alt="Related reference" border="0" ><br> |
| <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><br> |
| <a href="../reference/ref-view-package-explorer.htm">Package Explorer</a> |
| </p> |
| |
| </body> |
| </html> |
| |