use of org.eclipse.reddeer.eclipse.ui.wizards.datatransfer.ExternalProjectImportWizardDialog in project jbosstools-openshift by jbosstools.
the class CreateApplicationFromTemplateTest method importTestsProject.
@BeforeClass
public static void importTestsProject() {
new ExternalProjectImportWizardDialog().open();
new DefaultCombo().setText(TESTS_PROJECT_LOCATION);
new PushButton("Refresh").click();
new WaitUntil(new ControlIsEnabled(new FinishButton()), TimePeriod.LONG);
new FinishButton().click();
new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
new WaitUntil(new ProjectExists(TESTS_PROJECT), TimePeriod.LONG);
}
use of org.eclipse.reddeer.eclipse.ui.wizards.datatransfer.ExternalProjectImportWizardDialog 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