use of org.eclipse.reddeer.eclipse.ui.wizards.datatransfer.WizardProjectsImportPage in project jbosstools-hibernate by jbosstools.
the class ProjectImporter method importProject.
/**
* Import project
* @param pluginId plug-in id of project where project resources are located
* @param projectName project name to import
*/
public static void importProject(String pluginId, String prjName) {
ExternalProjectImportWizardDialog w = new ExternalProjectImportWizardDialog();
w.open();
WizardProjectsImportPage p1 = new WizardProjectsImportPage(w);
p1.setRootDirectory(ResourceFactory.getResourcesLocation(pluginId, "prj"));
p1.copyProjectsIntoWorkspace(true);
p1.deselectAllProjects();
p1.selectProjects(prjName);
w.finish();
}
Aggregations