use of org.eclipse.reddeer.swt.impl.button.FinishButton in project linuxtools by eclipse.
the class NewDockerConnectionPage method finish.
public void finish() {
new WaitUntil(new ShellIsAvailable(NEW_DOCKER_CONNECTION_SHELL));
new WaitUntil(new ControlIsEnabled(new FinishButton()));
new FinishButton().click();
new WaitWhile(new ShellIsAvailable(NEW_DOCKER_CONNECTION_SHELL), TimePeriod.LONG);
new WaitWhile(new JobIsRunning(), TimePeriod.VERY_LONG);
}
use of org.eclipse.reddeer.swt.impl.button.FinishButton in project linuxtools by eclipse.
the class DockerImagesTab method buildImage.
public void buildImage(String name, String directory) {
activate();
new DefaultToolItem("Build Image").click();
new WaitUntil(new ShellIsAvailable("Build a Docker Image"));
new LabeledText("Image Name:").setText(name);
new LabeledText("Directory:").setText(directory);
new FinishButton().click();
}
use of org.eclipse.reddeer.swt.impl.button.FinishButton in project linuxtools by eclipse.
the class DockerImagesTab method addTagToImage.
public void addTagToImage(String imageName, String newTag) {
selectImage(imageName);
new ContextMenu().getItem("Add Tag").select();
new DefaultShell("Tag Image");
new LabeledText("New Tag:").setText(newTag);
new FinishButton().click();
}
use of org.eclipse.reddeer.swt.impl.button.FinishButton in project linuxtools by eclipse.
the class DockerImagesTab method pushImage.
public void pushImage(String imageName, String registryAccount, boolean forceTagging, boolean keepTaggedImage) {
selectImage(imageName);
new ContextMenu().getItem("Push...").select();
Combo combo = new DefaultCombo();
combo.setSelection(registryAccount);
new CheckBox("Force tagging image with selected registry").toggle(forceTagging);
new CheckBox("Keep tagged image upon completion").toggle(keepTaggedImage);
new FinishButton().click();
}
use of org.eclipse.reddeer.swt.impl.button.FinishButton in project linuxtools by eclipse.
the class DockerImagesTab method removeTagFromImage.
public void removeTagFromImage(String imageName, String tagToBeRemoved) {
selectImage(imageName);
new ContextMenu().getItem("Remove Tag").select();
String fullTag = "";
Combo combo = new DefaultCombo();
List<String> comboItems = combo.getItems();
for (String item : comboItems) {
if (item.contains(tagToBeRemoved)) {
fullTag = item;
break;
}
}
combo.setSelection(fullTag);
new FinishButton().click();
}
Aggregations