use of org.eclipse.reddeer.swt.impl.button.PushButton 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.button.PushButton 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.button.PushButton 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);
}
}
use of org.eclipse.reddeer.swt.impl.button.PushButton in project linuxtools by eclipse.
the class RunDockerImageLaunchConfiguration method addValueInTable.
private void addValueInTable(String tabName, String shellName, String newValueName, String newValue) {
selectTab(tabName);
new PushButton("Add...").click();
new WaitUntil(new ShellIsAvailable(shellName));
new LabeledText("Name:").setText(newValueName);
new LabeledText("Value:").setText(newValue);
new OkButton().click();
}
use of org.eclipse.reddeer.swt.impl.button.PushButton in project linuxtools by eclipse.
the class DockerContainer method remove.
public void remove() {
select();
boolean removeEnabled = new ContextMenu().getItem("Remove").isEnabled();
if (!removeEnabled) {
new ContextMenu().getItem("Stop").select();
new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
item.select();
}
new ContextMenu().getItem("Remove").select();
new WaitUntil(new ShellIsAvailable("Confirm Remove Container"), TimePeriod.DEFAULT);
new PushButton("OK").click();
new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
}
Aggregations