Programming Tips - Eclipse: In Eclipse, how to rename a Java source file?

Date: 2010jun3 Update: 2025sep8 Environment: Eclipse Level: novice Q. Eclipse: In Eclipse, how to rename a Java source file? A. You are probably renaming the class inside the file too. Eclipse has a nice way to rename the file and the class in one step.
In Package Explorer: Right click on your file. Select Refactor > Rename...
If the Package View is not present you can switch to it by doing:
Window > Show View > Package Explorer
from the main menu.