use of org.eclipse.reddeer.swt.impl.text.LabeledText in project linuxtools by eclipse.
the class RunDockerImageLaunchConfiguration method setEntrypoint.
public void setEntrypoint(String entrypoint) {
selectTab(MAIN_TAB_LABEL);
new LabeledText("Entrypoint:").setText(entrypoint);
}
use of org.eclipse.reddeer.swt.impl.text.LabeledText 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.text.LabeledText 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.text.LabeledText in project linuxtools by eclipse.
the class RunDockerImageLaunchConfiguration method setContainerName.
public void setContainerName(String containerName) {
selectTab(MAIN_TAB_LABEL);
new LabeledText("Container Name:").setText(containerName);
}
use of org.eclipse.reddeer.swt.impl.text.LabeledText 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);
}
}
Aggregations