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();
}
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);
}
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();
}
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);
}
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();
}
Aggregations