use of org.eclipse.reddeer.swt.impl.button.OkButton in project linuxtools by eclipse.
the class RunDockerImageLaunchConfiguration method addPort.
public void addPort(String containerPort, String hostAddress, String hostPort) {
selectTab(PORTS_TAB_LABEL);
setPublishAllExposedPortsToRandomPorts(false);
new PushButton("Add...").click();
new WaitUntil(new ShellIsAvailable("Exposing a Container Port"));
new LabeledText("Container port:").setText(containerPort);
new LabeledText("Host address:").setText(hostAddress);
new LabeledText("Host port:").setText(hostPort);
new OkButton().click();
}
use of org.eclipse.reddeer.swt.impl.button.OkButton in project linuxtools by eclipse.
the class RunDockerImageLaunchConfiguration method addLink.
// links tab
public void addLink(String containerName, String alias) {
selectTab(LINKS_TAB_LABEL);
new PushButton("Add...").click();
new WaitWhile(new ShellIsAvailable("Container Linking"));
new LabeledText("Container:").setText(containerName);
new LabeledText("Value:").setText(alias);
new OkButton().click();
}
use of org.eclipse.reddeer.swt.impl.button.OkButton in project linuxtools by eclipse.
the class RunDockerImageLaunchConfiguration method editValueInTable.
private void editValueInTable(String tabName, String shellName, String oldValueName, String newValueName, String newValue) {
selectTab(tabName);
if (selectItemInTable(oldValueName)) {
new PushButton("Edit...");
new WaitWhile(new ShellIsAvailable(shellName));
new LabeledText("Name:").setText(newValueName);
new LabeledText("Value:").setText(newValue);
new OkButton().click();
} else {
throw new EclipseLayerException("There is no " + oldValueName + " in table on tab " + tabName);
}
}
use of org.eclipse.reddeer.swt.impl.button.OkButton in project linuxtools by eclipse.
the class DockerImage method remove.
/**
* * Removes docker image.
*/
public void remove() {
select();
new ContextMenu().getItem("Remove").select();
Shell confirm = new DefaultShell("Confirm Remove Image");
new OkButton().click();
new WaitWhile(new ShellIsAvailable(confirm));
new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
}
use of org.eclipse.reddeer.swt.impl.button.OkButton 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();
}
Aggregations