Search in sources :

Example 16 with DefaultCombo

use of org.eclipse.reddeer.swt.impl.combo.DefaultCombo in project jbosstools-openshift by jbosstools.

the class NewOpenShift3ApplicationWizard method openWizardFromShellMenu.

public void openWizardFromShellMenu(String project) {
    super.openWizardFromShellMenu();
    selectComboItem(project, new DefaultCombo(0));
}
Also used : DefaultCombo(org.eclipse.reddeer.swt.impl.combo.DefaultCombo)

Example 17 with DefaultCombo

use of org.eclipse.reddeer.swt.impl.combo.DefaultCombo in project jbosstools-openshift by jbosstools.

the class OpenNewConnectionWizardTest method verifyNewConnectionWizardIsOpened.

private void verifyNewConnectionWizardIsOpened() {
    Shell connectionShell = new DefaultShell(OpenShiftLabel.Shell.NEW_CONNECTION);
    new DefaultCombo(OpenShiftLabel.TextLabels.NEW_CONNECTION);
    new CancelButton().click();
    new WaitWhile(new ShellIsAvailable(connectionShell));
}
Also used : ShellIsAvailable(org.eclipse.reddeer.swt.condition.ShellIsAvailable) DefaultCombo(org.eclipse.reddeer.swt.impl.combo.DefaultCombo) DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) Shell(org.eclipse.reddeer.swt.api.Shell) WaitWhile(org.eclipse.reddeer.common.wait.WaitWhile) DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) CancelButton(org.eclipse.reddeer.swt.impl.button.CancelButton)

Example 18 with DefaultCombo

use of org.eclipse.reddeer.swt.impl.combo.DefaultCombo in project jbosstools-hibernate by jbosstools.

the class JpaFacetInstallPage method setConnectionProfile.

/**
 * Sets connection profile for JPA
 * @param profileName given connection profile
 */
public void setConnectionProfile(String profileName) {
    DefaultGroup group = new DefaultGroup(referencedComposite, "Connection");
    new WaitUntil(new ControlIsEnabled(new DefaultCombo(group)));
    new DefaultCombo(group).setSelection(profileName);
    PushButton apply = new PushButton(referencedComposite, "Apply");
    apply.click();
    new WaitWhile(new JobIsRunning());
    new WaitWhile(new ShellIsAvailable("Progress Information"), TimePeriod.LONG);
}
Also used : ShellIsAvailable(org.eclipse.reddeer.swt.condition.ShellIsAvailable) DefaultCombo(org.eclipse.reddeer.swt.impl.combo.DefaultCombo) WaitWhile(org.eclipse.reddeer.common.wait.WaitWhile) ControlIsEnabled(org.eclipse.reddeer.swt.condition.ControlIsEnabled) DefaultGroup(org.eclipse.reddeer.swt.impl.group.DefaultGroup) JobIsRunning(org.eclipse.reddeer.workbench.core.condition.JobIsRunning) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil) PushButton(org.eclipse.reddeer.swt.impl.button.PushButton)

Example 19 with DefaultCombo

use of org.eclipse.reddeer.swt.impl.combo.DefaultCombo in project jbosstools-hibernate by jbosstools.

the class MappingFileTest method createMappingFilePackageWithNoConfig.

// JBIDE-21766
@Test
public void createMappingFilePackageWithNoConfig() {
    ProjectExplorer pe = new ProjectExplorer();
    pe.open();
    PropertyDialog pd = pe.getProject(PRJ).openProperties();
    pd.select("Hibernate Settings");
    new DefaultCombo(pd).setSelection("<None>");
    pd.ok();
    createMappingFileFromPackage();
}
Also used : ProjectExplorer(org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer) DefaultCombo(org.eclipse.reddeer.swt.impl.combo.DefaultCombo) PropertyDialog(org.eclipse.reddeer.eclipse.ui.dialogs.PropertyDialog) Test(org.junit.Test)

Aggregations

DefaultCombo (org.eclipse.reddeer.swt.impl.combo.DefaultCombo)19 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)8 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)8 ShellIsAvailable (org.eclipse.reddeer.swt.condition.ShellIsAvailable)8 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)8 ControlIsEnabled (org.eclipse.reddeer.swt.condition.ControlIsEnabled)7 FinishButton (org.eclipse.reddeer.swt.impl.button.FinishButton)7 Combo (org.eclipse.reddeer.swt.api.Combo)6 LabeledText (org.eclipse.reddeer.swt.impl.text.LabeledText)6 JobIsRunning (org.eclipse.reddeer.workbench.core.condition.JobIsRunning)6 PushButton (org.eclipse.reddeer.swt.impl.button.PushButton)5 ContextMenu (org.eclipse.reddeer.swt.impl.menu.ContextMenu)5 NextButton (org.eclipse.reddeer.swt.impl.button.NextButton)4 OkButton (org.eclipse.reddeer.swt.impl.button.OkButton)4 Test (org.junit.Test)4 Shell (org.eclipse.reddeer.swt.api.Shell)3 BackButton (org.eclipse.reddeer.swt.impl.button.BackButton)3 LabeledCombo (org.eclipse.reddeer.swt.impl.combo.LabeledCombo)3 DefaultGroup (org.eclipse.reddeer.swt.impl.group.DefaultGroup)3 WorkbenchShell (org.eclipse.reddeer.workbench.impl.shell.WorkbenchShell)3