Search in sources :

Example 11 with RadioButton

use of org.eclipse.reddeer.swt.impl.button.RadioButton in project linuxtools by eclipse.

the class RunDockerImageLaunchConfiguration method addDataVolumeToHost.

public void addDataVolumeToHost(String containerPath, String path, boolean readOnly) {
    selectTab(VOLUMES_TAB_LABEL);
    new PushButton("Add...").click();
    new LabeledText("Container path:").setText(containerPath);
    new RadioButton("Mount a host directory or host file").click();
    new LabeledText("Path:").setText(path);
    new CheckBox("Read-only access").toggle(readOnly);
    new OkButton().click();
}
Also used : OkButton(org.eclipse.reddeer.swt.impl.button.OkButton) LabeledText(org.eclipse.reddeer.swt.impl.text.LabeledText) CheckBox(org.eclipse.reddeer.swt.impl.button.CheckBox) RadioButton(org.eclipse.reddeer.swt.impl.button.RadioButton) PushButton(org.eclipse.reddeer.swt.impl.button.PushButton)

Example 12 with RadioButton

use of org.eclipse.reddeer.swt.impl.button.RadioButton in project linuxtools by eclipse.

the class ImageRunNetworkPage method setOtherNetworkMode.

public void setOtherNetworkMode(String other) {
    new RadioButton("Other").click();
    new LabeledText("").setText(other);
}
Also used : LabeledText(org.eclipse.reddeer.swt.impl.text.LabeledText) RadioButton(org.eclipse.reddeer.swt.impl.button.RadioButton)

Example 13 with RadioButton

use of org.eclipse.reddeer.swt.impl.button.RadioButton in project linuxtools by eclipse.

the class ImageRunResourceVolumesVariablesPage method addDataVolumeToContainer.

public void addDataVolumeToContainer(String containerPath, String containerName) {
    new PushButton(0, new WithTextMatcher("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) WithTextMatcher(org.eclipse.reddeer.core.matcher.WithTextMatcher) 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 14 with RadioButton

use of org.eclipse.reddeer.swt.impl.button.RadioButton in project linuxtools by eclipse.

the class ImageRunResourceVolumesVariablesPage method setResourceLimitation.

public void setResourceLimitation(String CPU, String memoryLimit) {
    new CheckBox("Enable resource limitations").click();
    switch(CPU) {
        case "Low":
            new RadioButton("Low").click();
            break;
        case "Medium":
            new RadioButton("Medium").click();
            break;
        case "High":
            new RadioButton("High").click();
            break;
        default:
            new RadioButton("Medium").click();
    }
    new LabeledText("Memory limit:").setText(memoryLimit);
}
Also used : LabeledText(org.eclipse.reddeer.swt.impl.text.LabeledText) CheckBox(org.eclipse.reddeer.swt.impl.button.CheckBox) RadioButton(org.eclipse.reddeer.swt.impl.button.RadioButton)

Example 15 with RadioButton

use of org.eclipse.reddeer.swt.impl.button.RadioButton in project jbosstools-openshift by jbosstools.

the class TestUtils method setVisualEditorToUseHTML5.

public static void setVisualEditorToUseHTML5() {
    WorkbenchPreferenceDialog dialog = new WorkbenchPreferenceDialog();
    dialog.open();
    dialog.select("JBoss Tools", "Web", "Editors", "Visual Page Editor");
    RadioButton button = new RadioButton("HTML5 (use WebKit)");
    if (button.isEnabled() && !button.isSelected()) {
        button.click();
    }
    CheckBox checkBox = new CheckBox("Do not show Browser Engine dialog");
    if (checkBox.isEnabled() && !checkBox.isChecked()) {
        checkBox.click();
    }
    new PushButton("Apply").click();
    dialog.ok();
}
Also used : WorkbenchPreferenceDialog(org.eclipse.reddeer.workbench.ui.dialogs.WorkbenchPreferenceDialog) CheckBox(org.eclipse.reddeer.swt.impl.button.CheckBox) RadioButton(org.eclipse.reddeer.swt.impl.button.RadioButton) PushButton(org.eclipse.reddeer.swt.impl.button.PushButton)

Aggregations

RadioButton (org.eclipse.reddeer.swt.impl.button.RadioButton)15 LabeledText (org.eclipse.reddeer.swt.impl.text.LabeledText)9 PushButton (org.eclipse.reddeer.swt.impl.button.PushButton)7 OkButton (org.eclipse.reddeer.swt.impl.button.OkButton)6 CheckBox (org.eclipse.reddeer.swt.impl.button.CheckBox)5 WithTextMatcher (org.eclipse.reddeer.core.matcher.WithTextMatcher)3 DefaultCombo (org.eclipse.reddeer.swt.impl.combo.DefaultCombo)2 LabeledCombo (org.eclipse.reddeer.swt.impl.combo.LabeledCombo)1 DefaultGroup (org.eclipse.reddeer.swt.impl.group.DefaultGroup)1 WorkbenchPreferenceDialog (org.eclipse.reddeer.workbench.ui.dialogs.WorkbenchPreferenceDialog)1