use of org.eclipse.reddeer.common.matcher.RegexMatcher 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.common.matcher.RegexMatcher 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.matcher.RegexMatcher in project jbosstools-openshift by jbosstools.
the class OpenShiftUtils method handleCheatSheetCreateServerAdapter.
public static void handleCheatSheetCreateServerAdapter() {
try {
new WaitUntil(new ShellIsAvailable(new WithTextMatcher(new RegexMatcher(OpenShiftLabel.Shell.CHEATSHEET + "|" + OpenShiftLabel.Shell.CREATE_SERVER_ADAPTER))), TimePeriod.LONG);
new NoButton().click();
new DefaultShell("Create server adapter");
new NoButton().click();
} catch (CoreLayerException ex) {
// Swallow, shells are not opened
} catch (WaitTimeoutExpiredException e) {
// Also swallow, shells are not opened
}
}
Aggregations