Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change a project's location pointer in Eclipse?

A project has moved to a different location, so Eclipse won't open the project. You'll immediately think about simply changing the pointer to the location, but in Eclipse they try to make this impossible for some reason.

You cannot change the project location in the Project Explorer properties.

You can go to [workspace]/eclipse/.metadata/.plugins/org.eclipse.core.resources/.projects/ProjectName and try to edit .location which is the pointer to the project, but this file is purposely stored in binary.

How do I change this .location, is there a tool for that? Any other way to simply point my old project entry to it's new location?

like image 324
Redsandro Avatar asked May 24 '13 16:05

Redsandro


People also ask

How do I change the project Explorer view in Eclipse?

To view the project explorer, click on Window menu then, click on Show View and select Project Explorer. There is simpler way to open project explorer, when you are in the editor press alt + shift + w and select project explorer.

How do I edit a project in Eclipse?

you want from the list. comes with Eclipse (Help->Contents). > switch between them.

Can I move my Eclipse workspace?

Close Eclipse. Open the location of the workspace and cut paste the entire directory (which contains the ". metadata" directory into the intended location. Restart Eclipse with newly copied folder as the workspace (parent directory of ".


1 Answers

Delete the project from eclipse.

ENSURE THAT THE CHECK BOX is UNSELECTED, during this delete

And then import the project by File -> Import -> Import existing project and choose it from the new location.

Don't try to modify the eclipse files manually!

like image 87
Kai Avatar answered Oct 24 '22 10:10

Kai