Renaming a class or an interface
You can rename a class or an 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, do one of the following:
- In a Java view presenting classes and/or interfaces (e.g. the Outline view,
the Type Hierarchy views, etc.) select a class or interface.
- From the class's or interface's pop-up menu, select Refactor > Rename
or use the Refactor > Rename action from the global menu bar.
or
- In a Java editor, select a reference to the class or interface.
- From the editor's pop-up menu, select Refactor > Rename or use the Refactor
> Rename action from the global menu bar.
Java projects
Creating a new Java class
Creating a nested interface
Creating a top-level interface
Creating a top-level class
Creating a nested class
Creating a class in an existing compilation
unit
Package Explorer
Refactoring actions
Refactoring wizard
Refactoring preferences