Search in sources :

Example 1 with ShellMenu

use of org.eclipse.reddeer.swt.impl.menu.ShellMenu 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)

Example 2 with ShellMenu

use of org.eclipse.reddeer.swt.impl.menu.ShellMenu in project linuxtools by eclipse.

the class RunDockerImageLaunchConfiguration method open.

/**
 * Opens Run configuration dialog
 */
public void open() {
    DockerPerspective p = new DockerPerspective();
    p.open();
    new ShellMenu().getItem("Run", "Run Configurations...").select();
    new WaitUntil(new ShellIsAvailable("Run Configurations"));
}
Also used : ShellIsAvailable(org.eclipse.reddeer.swt.condition.ShellIsAvailable) DockerPerspective(org.eclipse.linuxtools.docker.reddeer.perspective.DockerPerspective) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil) ShellMenu(org.eclipse.reddeer.swt.impl.menu.ShellMenu)

Example 3 with ShellMenu

use of org.eclipse.reddeer.swt.impl.menu.ShellMenu in project linuxtools by eclipse.

the class ComposeTest method importProject.

private void importProject(String path) {
    new ShellMenu().getItem("File", "Open Projects from File System...").select();
    new LabeledCombo("Import source:").setText(path);
    new FinishButton().click();
    new WaitWhile(new JobIsRunning());
}
Also used : FinishButton(org.eclipse.reddeer.swt.impl.button.FinishButton) WaitWhile(org.eclipse.reddeer.common.wait.WaitWhile) LabeledCombo(org.eclipse.reddeer.swt.impl.combo.LabeledCombo) JobIsRunning(org.eclipse.reddeer.workbench.core.condition.JobIsRunning) ShellMenu(org.eclipse.reddeer.swt.impl.menu.ShellMenu)

Aggregations

ShellMenu (org.eclipse.reddeer.swt.impl.menu.ShellMenu)3 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)2 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)2 ShellIsAvailable (org.eclipse.reddeer.swt.condition.ShellIsAvailable)2 DockerPerspective (org.eclipse.linuxtools.docker.reddeer.perspective.DockerPerspective)1 RegexMatcher (org.eclipse.reddeer.common.matcher.RegexMatcher)1 WithTextMatchers (org.eclipse.reddeer.core.matcher.WithTextMatchers)1 FinishButton (org.eclipse.reddeer.swt.impl.button.FinishButton)1 PushButton (org.eclipse.reddeer.swt.impl.button.PushButton)1 LabeledCombo (org.eclipse.reddeer.swt.impl.combo.LabeledCombo)1 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)1 DefaultTreeItem (org.eclipse.reddeer.swt.impl.tree.DefaultTreeItem)1 JobIsRunning (org.eclipse.reddeer.workbench.core.condition.JobIsRunning)1