Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Completely renaming a project in Eclipse

I have done Refactor -> Rename in Eclipse and the project has been renamed successfully in Eclipse. But when I copy/paste it in a folder, it still keeps the old name.

How can I completely rename it?

like image 845
NiVeR Avatar asked Apr 08 '14 11:04

NiVeR


People also ask

How do I rename a dynamic Web project in Eclipse?

Copy Old project from the Project explorer , and paste it over there, It will ask for new name, give a new name , and done. The name there is changed to the new name, but the folder still keeps the old one. That's because you didnt rename the folder.

Can you rename a workspace in Eclipse?

Anyway, you can rename the current open workspace by choosing Eclipse->Preferences->General->Workspace and changing the option "Workspace name (shown in window title)" from the default's workspace folder name to whatever you want to call it. Then, restart Eclipse.


2 Answers

Open your .project file from the project folder and change following value in it.

enter image description here

You need to change to Project name in it.

Another way,

Copy Old project from the Project explorer , and paste it over there, It will ask for new name, give a new name , and done.

like image 195
Lucifer Avatar answered Oct 12 '22 11:10

Lucifer


1) Right click on your package -> refactor -> rename. select Update references and rename subpackages.

2) Change packagename in AndroidMenifest.xml

package=”com.example.new_package_name”

3) In resources->values->string.xml change app_name to "new_name"

<string name="app_name">"new_name"</string>

Hope that will work!

like image 41
Yogesh Avatar answered Oct 12 '22 13:10

Yogesh