| <!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"> |
| <meta name="GENERATOR" content="Mozilla/4.75 [en] (Windows NT 5.0; U) [Netscape]"> |
| <meta name="Author" content="Adam Kiezun"> |
| <title> |
| Renaming a type |
| </title> |
| <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"> |
| </head> |
| <body> |
| <h1> |
| Renaming a type |
| </h1> |
| <p> |
| You can rename a type 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: |
| </p> |
| <ol> |
| <li> |
| In a Java view presenting types (e.g. the Outline view, the Type Hierarchy views, etc.) select a type. |
| </li> |
| <li> |
| From the type's pop-up menu, select <strong>Refactor</strong> > <strong>Rename</strong> or use the |
| <strong>Refactor</strong> > <strong>Rename</strong> action from the global menu bar. |
| </li> |
| </ol> |
| or |
| <ol> |
| <li> |
| In a Java editor, select a reference to the type. |
| </li> |
| <li> |
| From the editor's pop-up menu, select <strong>Refactor</strong> > <strong>Rename</strong> or use the |
| <strong>Refactor</strong> > <strong>Rename</strong> action from the global menu bar. |
| </li> |
| </ol> |
| <img src="../images/ngrelc.png" alt="Related concepts" border="0" > |
| <p> |
| <a href="../concepts/concepts-3.htm">Java projects</a> |
| </p> |
| <p> |
| <img src="../images/ngrelt.png" alt="Related tasks" border="0" > |
| </p> |
| <p> |
| <a href="tasks-17.htm">Creating a new Java class</a><br> |
| <a href="tasks-17b.htm">Creating a new Java enum</a><br> |
| <a href="tasks-21b.htm">Creating a new Java annotation</a><br> |
| <a href="tasks-24.htm">Creating a nested interface</a><br> |
| <a href="tasks-23.htm">Creating a top-level interface</a><br> |
| <a href="tasks-18.htm">Creating a top-level class</a><br> |
| <a href="tasks-19.htm">Creating a nested class</a><br> |
| <a href="tasks-20.htm">Creating a class in an existing compilation unit</a> |
| </p> |
| <p> |
| <img src="../images/ngrelr.png" alt="Related reference" border="0" > |
| </p> |
| <p> |
| <a href="../reference/ref-view-package-explorer.htm">Package Explorer</a><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> |
| </p> |
| |
| </body> |
| </html> |
| |