Renaming a Class, Field, or Interface
You can rename a class, field, or interface by modifying its declaration in the compilation unit in which it is declared. However, if you also want to update all references to it, you can either:
-
In the Packages view, find the compilation unit where the class, field, or interface is declared, and double-click it to open it in the editor. Select the class, field, or interface in the Outline view, from its context menu, select Refactor > Rename.
-
In the Packages view, find the compilation unit where the class, field, or interface is declared, and from its context menu, select
Open Type Hierarchy. Select the class, field, or interface in the Hierarchy view and select from its context menu Refactor > Rename.