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);
Saturday, May 16, 2009
Programmatically import an existing project into Eclipse
Subscribe to:
Post Comments (Atom)
Very helpful. Thanks!
ReplyDelete-Val
Thanks..!
ReplyDeleteThanks so much!!!
ReplyDeleteIf it's an archive project ?
ReplyDeleteI recieve the following error: Exception in thread "main" java.lang.IllegalStateException: Workspace is closed.
ReplyDeleteDo you know if there is a workaround for this.
Answers on stackoverflow.com may help: http://stackoverflow.com/questions/962364/workspace-is-closed-exception-when-trying-to-get-the-workspace-through-resources
ReplyDelete