use of org.eclipse.reddeer.swt.impl.button.OkButton in project linuxtools by eclipse.
the class ComposeTest method runDockerCompose.
private void runDockerCompose(String project, String projectFile) {
PackageExplorerPart pe = new PackageExplorerPart();
pe.open();
pe.getProject(project).getProjectItem(projectFile).select();
@SuppressWarnings("unchecked") ContextMenuItem contextMenu = new ContextMenuItem(new WithTextMatcher("Run As"), new RegexMatcher(".*Docker Compose"));
contextMenu.select();
new OkButton().click();
try {
new DefaultShell("Docker Compose");
new PushButton("Apply and Close").click();
fail("Docker Compose has not been found! Is it installed and the path is correct?");
} catch (CoreLayerException ex) {
}
new WaitWhile(new JobIsRunning(), TimePeriod.VERY_LONG);
new WaitWhile(new ConsoleHasNoChange());
}
use of org.eclipse.reddeer.swt.impl.button.OkButton in project linuxtools by eclipse.
the class ImageRunResourceVolumesVariablesPage method addDataVolumeNoExternalMount.
public void addDataVolumeNoExternalMount(String containerPath) {
new PushButton(0, new WithTextMatcher("Add...")).click();
new LabeledText("Container path:").setText(containerPath);
new RadioButton("No external mount").click();
new OkButton().click();
}
use of org.eclipse.reddeer.swt.impl.button.OkButton 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.OkButton 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.OkButton in project linuxtools by eclipse.
the class RunDockerImageLaunchConfiguration method addDataVolumeNoExternalMount.
public void addDataVolumeNoExternalMount(String containerPath) {
selectTab(VOLUMES_TAB_LABEL);
new PushButton("Add..").click();
new LabeledText("Container path:").setText(containerPath);
new RadioButton("No external mount").click();
new OkButton().click();
}
Aggregations