Eclipse refactoring menu
Reconstruction using Eclipse
In project development, we often need to modify the class name, but if other classes depend on the class, we need to spend a lot of time to change the class name.
But Eclipse dependencies reconstruction function can automatically detect and modify the class name of the class, to help us save a lot of time.
Reconstruction is available through the following ways to open the menu:
- Right-click the Java element in the Package Explorer view and select Refactor (reconstruction) menu item
- In the Java Editor, right-click Java element and select Refactor (reconstruction) menu item
- Select the Java element in the Package Explorer view and press Shift + Alt + T
The following figure we selected HelloWorld class in the Java editor:
After selecting Rename you will be prompted to enter the new class name and press Enter End Review:
After the changes are complete press the Enter key, it will pop up will be modified classes:
You just click on the Continue button to complete the operation.