use of org.eclipse.reddeer.swt.impl.text.LabeledText in project linuxtools by eclipse.
the class RunDockerImageLaunchConfiguration method addDataVolumeNoExternalMount.
public void addDataVolumeNoExternalMount(String containerPath) {
selectTab(VOLUMES_TAB_LABEL);
new PushButton("Add..").click();
new LabeledText("Container path:").setText(containerPath);
new RadioButton("No external mount").click();
new OkButton().click();
}
use of org.eclipse.reddeer.swt.impl.text.LabeledText in project linuxtools by eclipse.
the class RunDockerImageLaunchConfiguration method addDataVolumeToContainer.
public void addDataVolumeToContainer(String containerPath, String containerName) {
selectTab(VOLUMES_TAB_LABEL);
new PushButton("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.text.LabeledText in project linuxtools by eclipse.
the class RunDockerImageLaunchConfiguration method setCommand.
public void setCommand(String command) {
selectTab(MAIN_TAB_LABEL);
new LabeledText("Command:").setText(command);
}
use of org.eclipse.reddeer.swt.impl.text.LabeledText in project linuxtools by eclipse.
the class RunDockerImageLaunchConfiguration method setMemoryLimit.
public void setMemoryLimit(String memoryLimit) {
selectTab(RESOURCES_TAB_LABEL);
new CheckBox("Enable resource limitations").toggle(true);
new LabeledText("Memory limit:").setText(memoryLimit);
}
use of org.eclipse.reddeer.swt.impl.text.LabeledText in project linuxtools by eclipse.
the class RunDockerImageLaunchConfiguration method editLink.
public void editLink(String oldContainer, String newContainer, String newAlias) {
selectTab(LINKS_TAB_LABEL);
if (selectItemInTable(oldContainer)) {
new PushButton("Edit...").click();
new WaitWhile(new ShellIsAvailable("Container Linking"));
new LabeledText("Container:").setText(newContainer);
new LabeledText("Value:").setText(newAlias);
new OkButton().click();
} else {
throw new EclipseLayerException("There is no " + oldContainer + " in table on tab " + LINKS_TAB_LABEL);
}
}
Aggregations