Search in sources :

Example 1 with WizardProjectsImportPage

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();
}
Also used : WizardProjectsImportPage(org.eclipse.reddeer.eclipse.ui.wizards.datatransfer.WizardProjectsImportPage) ExternalProjectImportWizardDialog(org.eclipse.reddeer.eclipse.ui.wizards.datatransfer.ExternalProjectImportWizardDialog)

Aggregations

ExternalProjectImportWizardDialog (org.eclipse.reddeer.eclipse.ui.wizards.datatransfer.ExternalProjectImportWizardDialog)1 WizardProjectsImportPage (org.eclipse.reddeer.eclipse.ui.wizards.datatransfer.WizardProjectsImportPage)1