Reputation: 26427
I have downloaded an Android project. To avoid name conflicts I want to move it from com.android.zzz to com.my.zzz. At the moment I'm using Ecplise with the standard android toolkit. Is there a better way to do the rename than to go manually through the files?
Upvotes: 21
Views: 25790
Reputation: 265
As usual, by pressing F2 on package name, you can rename or change the package name, and also by Right-clicking and then select Rename option, you can change or rename the Package name.
When you press F2, it will show you the dialog box as:
alt text
In this dialog, dont forget to check "Update references" check box because by making "check" to this check-box, it will make changes to all the references of the package which are referred by other components of project.
Hope this helps you,
Upvotes: 9
Reputation: 201058
This is basic IDE refactoring.
Right click the package in Eclipse -> Refactor -> Rename.
You will probably want to check all the options that come up in the Rename dialog.
Another option would be to right click the class files in Eclipse -> Refactor -> Move.
Upvotes: 39