Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Change location of project
Change location of project [message #662439] Wed, 30 March 2011 16:33 Go to next message
Mikael Petterson is currently offline Mikael PettersonFriend
Messages: 158
Registered: July 2009
Senior Member
Hi,

I am not sure if this is the right forum. If not point me in the right direction.

What I want to accomplish is ( using Eclipse API).

I have a project in the workspace. I want to move that to another place ( not in the same workspace) and just change location path of the project. Everything else but the location of the project is the same.

Is it possible? Can anyone give me hints on how to do it?

All help is very much appreciated.

br,

//mikael
Re: Change location of project [message #662454 is a reply to message #662439] Wed, 30 March 2011 17:20 Go to previous message
Mikael Petterson is currently offline Mikael PettersonFriend
Messages: 158
Registered: July 2009
Senior Member
Hi,

I looked more at the API and need your opinion on this:

//Copy resources to

IWorkspace w=ResourcesPlugin.getWorkspace();
IProject projHandle = w.getRoot().getProject("mycurrentProject");


IProjectDescription desc=w.newProjectDescription(projHandle.getName());
desc.setLocationURI(newPath);

projHandle.move(desc, false,monitor);

//mike
Previous Topic:Product Branding recent info wanted
Next Topic:Common Navigator Inline editing
Goto Forum:
  


Current Time: Wed Apr 24 20:31:33 GMT 2024

Powered by FUDForum. Page generated in 0.03214 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top