Examples of MenuFinder


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

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

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

  /**
   * Constructs a bot.
   */
  public SWTFormsBot() {
    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 SWTFormsBot(Widget parent) {
    this(new ChildrenControlFinder(parent), 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.