Saturday, May 16, 2009

Programmatically import an existing project into Eclipse

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);