use of org.eclipse.reddeer.swt.impl.button.PushButton in project linuxtools by eclipse.
the class RunDockerImageLaunchConfiguration method editPort.
public void editPort(String oldContainerPort, String newContainerPort, String newHostAddress, String newHostPort) {
selectTab(PORTS_TAB_LABEL);
setPublishAllExposedPortsToRandomPorts(false);
if (selectItemInTable(oldContainerPort)) {
new PushButton("Edit...");
new WaitUntil(new ShellIsAvailable("Exposing a Container Port"));
new LabeledText("Container port:").setText(newContainerPort);
new LabeledText("Host address:").setText(newHostAddress);
new LabeledText("Host port:").setText(newHostPort);
new OkButton().click();
} else {
throw new EclipseLayerException("There is no " + oldContainerPort + " in table on tab " + PORTS_TAB_LABEL);
}
}
use of org.eclipse.reddeer.swt.impl.button.PushButton 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.PushButton in project linuxtools by eclipse.
the class RunDockerImageLaunchConfiguration method runConfiguration.
public void runConfiguration(String configurationName) {
selectConfiguration(configurationName);
new PushButton("Run").click();
}
use of org.eclipse.reddeer.swt.impl.button.PushButton 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.PushButton 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();
}
Aggregations