Search in sources :

Example 1 with WithTextMatchers

use of org.eclipse.reddeer.core.matcher.WithTextMatchers 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());
}
Also used : ShellIsAvailable(org.eclipse.reddeer.swt.condition.ShellIsAvailable) WaitWhile(org.eclipse.reddeer.common.wait.WaitWhile) DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) DefaultTreeItem(org.eclipse.reddeer.swt.impl.tree.DefaultTreeItem) WithTextMatchers(org.eclipse.reddeer.core.matcher.WithTextMatchers) RegexMatcher(org.eclipse.reddeer.common.matcher.RegexMatcher) PushButton(org.eclipse.reddeer.swt.impl.button.PushButton) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil) ShellMenu(org.eclipse.reddeer.swt.impl.menu.ShellMenu)

Aggregations

RegexMatcher (org.eclipse.reddeer.common.matcher.RegexMatcher)1 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)1 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)1 WithTextMatchers (org.eclipse.reddeer.core.matcher.WithTextMatchers)1 ShellIsAvailable (org.eclipse.reddeer.swt.condition.ShellIsAvailable)1 PushButton (org.eclipse.reddeer.swt.impl.button.PushButton)1 ShellMenu (org.eclipse.reddeer.swt.impl.menu.ShellMenu)1 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)1 DefaultTreeItem (org.eclipse.reddeer.swt.impl.tree.DefaultTreeItem)1