use of org.eclipse.reddeer.swt.condition.ShellIsAvailable 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.condition.ShellIsAvailable 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.condition.ShellIsAvailable 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);
}
use of org.eclipse.reddeer.swt.condition.ShellIsAvailable in project jbosstools-hibernate by jbosstools.
the class LaunchConfigurationsDialog method run.
/**
* Executes configuration
*/
public void run() {
new PushButton(this, "Run").click();
new WaitWhile(new ShellIsAvailable(this));
new WaitUntil(new JobIsRunning());
new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
}
use of org.eclipse.reddeer.swt.condition.ShellIsAvailable in project jbosstools-hibernate by jbosstools.
the class LaunchConfigurationsDialog method close.
/**
* Presses Close button on the Dialog.
*/
public void close() {
new PushButton(this, "Close").click();
new WaitWhile(new ShellIsAvailable(this));
new WaitWhile(new JobIsRunning());
}
Aggregations