Search in sources :

Example 1 with DefaultCombo

use of org.eclipse.reddeer.swt.impl.combo.DefaultCombo in project linuxtools by eclipse.

the class DockerImagesTab method pushImage.

public void pushImage(String imageName, String registryAccount, boolean forceTagging, boolean keepTaggedImage) {
    selectImage(imageName);
    new ContextMenu().getItem("Push...").select();
    Combo combo = new DefaultCombo();
    combo.setSelection(registryAccount);
    new CheckBox("Force tagging image with selected registry").toggle(forceTagging);
    new CheckBox("Keep tagged image upon completion").toggle(keepTaggedImage);
    new FinishButton().click();
}
Also used : DefaultCombo(org.eclipse.reddeer.swt.impl.combo.DefaultCombo) FinishButton(org.eclipse.reddeer.swt.impl.button.FinishButton) CheckBox(org.eclipse.reddeer.swt.impl.button.CheckBox) ContextMenu(org.eclipse.reddeer.swt.impl.menu.ContextMenu) Combo(org.eclipse.reddeer.swt.api.Combo) DefaultCombo(org.eclipse.reddeer.swt.impl.combo.DefaultCombo)

Example 2 with DefaultCombo

use of org.eclipse.reddeer.swt.impl.combo.DefaultCombo in project linuxtools by eclipse.

the class DockerImagesTab method removeTagFromImage.

public void removeTagFromImage(String imageName, String tagToBeRemoved) {
    selectImage(imageName);
    new ContextMenu().getItem("Remove Tag").select();
    String fullTag = "";
    Combo combo = new DefaultCombo();
    List<String> comboItems = combo.getItems();
    for (String item : comboItems) {
        if (item.contains(tagToBeRemoved)) {
            fullTag = item;
            break;
        }
    }
    combo.setSelection(fullTag);
    new FinishButton().click();
}
Also used : DefaultCombo(org.eclipse.reddeer.swt.impl.combo.DefaultCombo) FinishButton(org.eclipse.reddeer.swt.impl.button.FinishButton) ContextMenu(org.eclipse.reddeer.swt.impl.menu.ContextMenu) Combo(org.eclipse.reddeer.swt.api.Combo) DefaultCombo(org.eclipse.reddeer.swt.impl.combo.DefaultCombo)

Example 3 with DefaultCombo

use of org.eclipse.reddeer.swt.impl.combo.DefaultCombo in project linuxtools by eclipse.

the class RunDockerImageLaunchConfiguration method addDataVolumeToContainer.

public void addDataVolumeToContainer(String containerPath, String containerName) {
    selectTab(VOLUMES_TAB_LABEL);
    new PushButton("Add...").click();
    new LabeledText("Container path:").setText(containerPath);
    new RadioButton("Mount a data volume container").click();
    new DefaultCombo("Container").setText(containerName);
    new OkButton().click();
}
Also used : OkButton(org.eclipse.reddeer.swt.impl.button.OkButton) DefaultCombo(org.eclipse.reddeer.swt.impl.combo.DefaultCombo) LabeledText(org.eclipse.reddeer.swt.impl.text.LabeledText) RadioButton(org.eclipse.reddeer.swt.impl.button.RadioButton) PushButton(org.eclipse.reddeer.swt.impl.button.PushButton)

Example 4 with DefaultCombo

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

the class EditConfigurationMainPage method setDatabaseConnection.

/**
 * Sets database connection for Hibernate Console Configuration
 * @param connection given connection
 */
public void setDatabaseConnection(String connection) {
    DefaultGroup g = new DefaultGroup("Database connection:");
    new DefaultCombo(g, 0).setText(connection);
}
Also used : DefaultCombo(org.eclipse.reddeer.swt.impl.combo.DefaultCombo) DefaultGroup(org.eclipse.reddeer.swt.impl.group.DefaultGroup)

Example 5 with DefaultCombo

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

the class ProjectConfigurationFactory method addFurtherJPAConfiguration.

private static void addFurtherJPAConfiguration(String jpaVersion, boolean addedJavaFacet) {
    DefaultHyperlink hyperlink = new DefaultHyperlink();
    hyperlink.activate();
    Shell s = new DefaultShell("Modify Faceted Project");
    if (addedJavaFacet) {
        new NextButton().click();
    }
    DefaultGroup group = new DefaultGroup("Platform");
    new DefaultCombo(group).setSelection("Hibernate (JPA " + jpaVersion + ")");
    new LabeledCombo("Type:").setSelection("Disable Library Configuration");
    new OkButton().click();
    new WaitWhile(new ShellIsAvailable(s));
}
Also used : OkButton(org.eclipse.reddeer.swt.impl.button.OkButton) ShellIsAvailable(org.eclipse.reddeer.swt.condition.ShellIsAvailable) DefaultCombo(org.eclipse.reddeer.swt.impl.combo.DefaultCombo) DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) WorkbenchShell(org.eclipse.reddeer.workbench.impl.shell.WorkbenchShell) Shell(org.eclipse.reddeer.swt.api.Shell) NextButton(org.eclipse.reddeer.swt.impl.button.NextButton) WaitWhile(org.eclipse.reddeer.common.wait.WaitWhile) LabeledCombo(org.eclipse.reddeer.swt.impl.combo.LabeledCombo) DefaultHyperlink(org.eclipse.reddeer.uiforms.impl.hyperlink.DefaultHyperlink) DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) DefaultGroup(org.eclipse.reddeer.swt.impl.group.DefaultGroup)

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