Search in sources :

Example 1 with ExternalProjectImportWizardDialog

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);
}
Also used : DefaultCombo(org.eclipse.reddeer.swt.impl.combo.DefaultCombo) FinishButton(org.eclipse.reddeer.swt.impl.button.FinishButton) WaitWhile(org.eclipse.reddeer.common.wait.WaitWhile) ProjectExists(org.eclipse.reddeer.eclipse.condition.ProjectExists) ControlIsEnabled(org.eclipse.reddeer.swt.condition.ControlIsEnabled) JobIsRunning(org.eclipse.reddeer.workbench.core.condition.JobIsRunning) PushButton(org.eclipse.reddeer.swt.impl.button.PushButton) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil) ExternalProjectImportWizardDialog(org.eclipse.reddeer.eclipse.ui.wizards.datatransfer.ExternalProjectImportWizardDialog) BeforeClass(org.junit.BeforeClass)

Example 2 with ExternalProjectImportWizardDialog

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();
}
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)2 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)1 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)1 ProjectExists (org.eclipse.reddeer.eclipse.condition.ProjectExists)1 WizardProjectsImportPage (org.eclipse.reddeer.eclipse.ui.wizards.datatransfer.WizardProjectsImportPage)1 ControlIsEnabled (org.eclipse.reddeer.swt.condition.ControlIsEnabled)1 FinishButton (org.eclipse.reddeer.swt.impl.button.FinishButton)1 PushButton (org.eclipse.reddeer.swt.impl.button.PushButton)1 DefaultCombo (org.eclipse.reddeer.swt.impl.combo.DefaultCombo)1 JobIsRunning (org.eclipse.reddeer.workbench.core.condition.JobIsRunning)1 BeforeClass (org.junit.BeforeClass)1