Examples of MenuFinder


Examples of org.eclipse.swtbot.swt.finder.finders.MenuFinder

  public SWTBotMenu menu(final String menuName) throws WidgetNotFoundException {
    final Matcher<? extends Widget> matcher = withMnemonic(menuName);
    MenuItem menuItem = syncExec(new WidgetResult<MenuItem>() {
      public MenuItem run() {
        Menu bar = widget.getMenu();
        List menus = new MenuFinder().findMenus(bar, withMnemonic(menuName), true);
        if (!menus.isEmpty())
          return (MenuItem) menus.get(0);
        return null;
      }
    });
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.finders.MenuFinder

  /**
   * Constructs a bot.
   */
  public SWTBot() {
    this(new ControlFinder(), new MenuFinder());
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.finders.MenuFinder

   * Constructs a bot that will match the contents of the given parentWidget.
   *
   * @param parent the parent
   */
  public SWTBot(Widget parent) {
    this(new ChildrenControlFinder(parent), new MenuFinder());
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.finders.MenuFinder

  /**
   * Constructs a bot.
   */
  public SWTBot() {
    this(new ControlFinder(), new MenuFinder());
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.finders.MenuFinder

   * Constructs a bot that will match the contents of the given parentWidget.
   *
   * @param parent the parent
   */
  public SWTBot(Widget parent) {
    this(new ChildrenControlFinder(parent), new MenuFinder());
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.finders.MenuFinder

  /**
   * Constructs a bot.
   */
  public SWTBot() {
    this(new ControlFinder(), new MenuFinder());
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.finders.MenuFinder

   * Constructs a bot that will match the contents of the given parentWidget.
   *
   * @param parent the parent
   */
  public SWTBot(Widget parent) {
    this(new ChildrenControlFinder(parent), new MenuFinder());
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.finders.MenuFinder

  protected MenuFinder menuFinder;
  protected AddressBook addressBook;

  @Before
  public void setUp() throws Exception {
    menuFinder = new MenuFinder();
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.finders.MenuFinder

  @Before
  public final void setupSWTBot() {
    bot = new SWTBot();
    controlFinder = new ControlFinder();
    menuFinder = new MenuFinder();
    finder = new Finder(controlFinder, menuFinder);
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.finders.MenuFinder

   * @return a matcher.
   * @since 2.0
   */
  @Factory
  public static <T extends Widget> Matcher<T> withLabel(String labelText) {
    return new WithLabel<T>(labelText, new Finder(new ControlFinder(), new MenuFinder()));
  }
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.