use of org.eclipse.reddeer.common.wait.WaitUntil 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.common.wait.WaitUntil in project linuxtools by eclipse.
the class AbstractView method openViaMenu.
private void openViaMenu() {
WithTextMatchers m = new WithTextMatchers(new RegexMatcher[] { new RegexMatcher("Window.*"), new RegexMatcher("Show View.*"), new RegexMatcher("Other...*") });
new ShellMenu().getItem(m.getMatchers()).select();
new DefaultShell(SHOW_VIEW);
new DefaultTreeItem(path).select();
new PushButton("Open").click();
new WaitWhile(new ShellIsAvailable(SHOW_VIEW));
new WaitUntil(new ViewCTabIsAvailable());
}
use of org.eclipse.reddeer.common.wait.WaitUntil 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.common.wait.WaitUntil in project linuxtools by eclipse.
the class RunDockerImageLaunchConfiguration method open.
/**
* Opens Run configuration dialog
*/
public void open() {
DockerPerspective p = new DockerPerspective();
p.open();
new ShellMenu().getItem("Run", "Run Configurations...").select();
new WaitUntil(new ShellIsAvailable("Run Configurations"));
}
use of org.eclipse.reddeer.common.wait.WaitUntil 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();
}
Aggregations