Date: 2010jun3
Level: beginner
Platform: Eclipse
Q. 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.
| What this info useful to you? You can donate to say thanks |
Add a comment
Sign in to add a comment