Examples of SWTBotShell


Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotShell

   *
   * @return the current active shell
   * @throws WidgetNotFoundException if the widget is not found.
   */
  public SWTBotShell activeShell() throws WidgetNotFoundException {
    return new SWTBotShell(getFinder().activeShell());
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotShell

      Shell mainWindow = syncExec(new WidgetResult<Shell>() {
        public Shell run() {
          return styledText.widget.getShell();
        }
      });
      SWTBotShell shell = bot.shell("", mainWindow); //$NON-NLS-1$
      shell.activate();
      log.debug("Activated quickfix shell."); //$NON-NLS-1$
      return shell;
    } catch (Exception e) {
      throw new QuickFixNotFoundException("Quickfix popup not found. Giving up.", e); //$NON-NLS-1$
    }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotShell

   * @return a wrapper around a {@link Shell} with the specified index.
   * @param text the text on the shell.
   * @param index the index of the shell, in case there are multiple shells with the same text.
   */
  public SWTBotShell shell(String text, int index) {
    return new SWTBotShell(shells(text).get(index));
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotShell

   * @param text the text on the shell.
   * @param parent the parent under which a shell will be found.
   * @param index the index of the shell, in case there are multiple shells with the same text.
   */
  public SWTBotShell shell(String text, Shell parent, int index) {
    return new SWTBotShell(shells(text, parent).get(index));
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotShell

   */
  public SWTBotShell shellWithId(String value, int index) {
    Matcher<Shell> withId = withId(value);
    WaitForObjectCondition<Shell> waitForShell = waitForShell(withId);
    waitUntilWidgetAppears(waitForShell);
    return new SWTBotShell(waitForShell.get(index));
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotShell

   */
  public SWTBotShell shellWithId(String key, String value, int index) {
    Matcher<Shell> withId = withId(key, value);
    WaitForObjectCondition<Shell> waitForShell = waitForShell(withId);
    waitUntilWidgetAppears(waitForShell);
    return new SWTBotShell(waitForShell.get(index));
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotShell

   */
  public SWTBotShell[] shells() {
    Shell[] shells = finder.getShells();
    ArrayList<SWTBotShell> result = new ArrayList<SWTBotShell>();
    for (Shell shell : shells) {
      result.add(new SWTBotShell(shell));
    }
    return result.toArray(new SWTBotShell[] {});
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotShell

   *
   * @return the current active shell
   * @throws WidgetNotFoundException if the widget is not found.
   */
  public SWTBotShell activeShell() throws WidgetNotFoundException {
    return new SWTBotShell(getFinder().activeShell());
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotShell

    } catch (WidgetNotFoundException ignored) {}
  }

  public void createGeneralProject(String name) {
    menu("File").menu("New").menu("Project...").click();
    SWTBotShell shell = shell("New Project");
    shell.activate();
    tree().expandNode("General").select("Project");
    button("Next >").click();
    textWithLabel("Project name:").setText(name);
    button("Finish").click();
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotShell

    return file;
  }

  public SWTBotEclipseEditor createFile(String name) {
    menu("File").menu("New").menu("File").click();
    SWTBotShell shell = shell("New File");
    shell.activate();
    textWithLabel("File name:").setText(name);
    button("Finish").click();
    return editorByTitle(name).toTextEditor();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.