use of org.eclipse.reddeer.swt.impl.button.PushButton in project linuxtools by eclipse.
the class ImageRunResourceVolumesVariablesPage method addDataVolumeToHost.
public void addDataVolumeToHost(String containerPath, String path, boolean readOnly) {
new PushButton(0, new WithTextMatcher("Add...")).click();
new LabeledText("Container path:").setText(containerPath);
new RadioButton("Mount a host directory or host file").click();
new LabeledText("Path:").setText(path);
new CheckBox("Read-only access").toggle(readOnly);
;
new OkButton().click();
}
use of org.eclipse.reddeer.swt.impl.button.PushButton in project linuxtools by eclipse.
the class ImageRunSelectionPage method addExposedPort.
public void addExposedPort(String containerPort, String hostAddress, String hostPort) {
new PushButton(0, new WithTextMatcher("Add...")).click();
new DefaultShell("Exposing a Container Port");
new LabeledText("Container port:").setText(containerPort);
new LabeledText("Host address:").setText(hostAddress);
new LabeledText("Host port:").setText(hostPort);
new OkButton().click();
}
use of org.eclipse.reddeer.swt.impl.button.PushButton in project linuxtools by eclipse.
the class ImageSearchPage method searchImage.
public void searchImage() {
new PushButton("Search").click();
new WaitWhile(new JobIsRunning(), TimePeriod.DEFAULT);
}
use of org.eclipse.reddeer.swt.impl.button.PushButton in project linuxtools by eclipse.
the class RegistryAccountsPreferencePage method removeRegistry.
public void removeRegistry(String serverAddress) {
Table table = new DefaultTable();
if (table.containsItem(serverAddress)) {
table.select(serverAddress);
new PushButton("Remove").click();
}
}
use of org.eclipse.reddeer.swt.impl.button.PushButton 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());
}
Aggregations