use of org.eclipse.reddeer.swt.impl.button.FinishButton in project jbosstools-openshift by jbosstools.
the class AbstractOpenShiftApplicationWizard method finish.
/**
* Waits and clicks Finish button.
*/
public void finish() {
new WaitUntil(new ControlIsEnabled(new FinishButton()), TimePeriod.LONG);
new FinishButton().click();
}
use of org.eclipse.reddeer.swt.impl.button.FinishButton in project jbosstools-openshift by jbosstools.
the class OpenShift3ConnectionWizard method finishAndHandleCertificate.
public void finishAndHandleCertificate() {
new WaitUntil(new ControlIsEnabled(new FinishButton()), TimePeriod.LONG);
new FinishButton().click();
try {
new DefaultShell(OpenShiftLabel.Shell.UNTRUSTED_SSL_CERTIFICATE);
new PushButton("Yes").click();
} catch (RedDeerException ex) {
fail("Aceptance of SSL certificate failed.");
}
new WaitWhile(new ShellIsAvailable(OpenShiftLabel.Shell.NEW_CONNECTION), TimePeriod.LONG);
new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
}
use of org.eclipse.reddeer.swt.impl.button.FinishButton in project linuxtools by eclipse.
the class DockerConnection method pullImage.
public void pullImage(String imageName, String imageTag, String dockerRegister) {
if (getImage(imageName, imageTag) == null) {
refreshImages();
treeViewerHandler.getTreeItem(item, "Images").select();
new ContextMenu().getItem("Pull...").select();
new WaitUntil(new ShellIsAvailable("Pull Image"), TimePeriod.DEFAULT);
Shell pullShell = new DefaultShell("Pull Image");
// select register
if (dockerRegister != null) {
Combo combo = new DefaultCombo();
combo.setSelection(dockerRegister);
}
new LabeledText(IMAGE_NAME_LABEL_DIALOG).setFocus();
new LabeledText(IMAGE_NAME_LABEL_DIALOG).setText(imageTag == null ? imageName : imageName + ":" + imageTag);
new WaitUntil(new ControlIsEnabled(new FinishButton()));
new FinishButton(pullShell).click();
new WaitWhile(new ShellIsAvailable(pullShell));
new WaitWhile(new JobIsRunning(), TimePeriod.VERY_LONG);
}
}
use of org.eclipse.reddeer.swt.impl.button.FinishButton in project linuxtools by eclipse.
the class DockerImage method pushImage.
public void pushImage(String registryAccount, boolean forceTagging, boolean keepTaggedImage) {
select();
new ContextMenu().getItem("Push...").select();
new DefaultShell("Push Image");
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 DockerImage method addTagToImage.
public void addTagToImage(String newTag) {
select();
new ContextMenu().getItem("Add Tag").select();
new DefaultShell("Tag Image");
new LabeledText("New Tag:").setText(newTag);
new FinishButton().click();
}
Aggregations