1

If we want to import an existing project, we do the following

 File->import->general->Existing project into workspace->Select project….->Finish.. 

Can we do the same by using javacode or eclipse-plugin… Is there any such code available….

please help me...

1
  • I know what you mean. This maybe help. Commented Mar 13, 2012 at 9:42

2 Answers 2

5
IProjectDescription description = ResourcesPlugin.getWorkspace().loadProjectDescription(  new Path("PROJECT_PATH/.project"));
IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(description.getName());
project.create(description, null);
project.open(null);
Sign up to request clarification or add additional context in comments.

Comments

0

Very unclear what you want to achieve..

If what you are looking for is a way to easily to share a project setup between developers, then there is a way using project sets. The link uses CVS as example, but it exists for other version control systems.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.