Browse - Programming Tips - Eclipse: How do I rename a Java source file?

Date: 2010jun3
Level: beginner
Environment: Eclipse

Q.  Eclipse: How do I rename a Java source file?

A.  You are probably renaming the class inside the file too.
Eclipse has a 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 my doing:
Window > Show View > Package Explorer
from the main menu.