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?
+3
A:
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.
mbaird
2010-10-02 15:41:41
This doesn't change the manifest but only the .java files. As a result it leaves errors.
Christian
2010-10-02 15:54:11
If you actually check all those boxes in the dialog that comes up, it should change all your files except the Manifest file since the package and class names in the Manifest are separate. That gives you 1 file to fix after the refactor. Much better than going "manually through the files" as you put it in your original question.
mbaird
2010-10-02 16:10:34