Package org.eclipse.swtbot.swt.finder.finders

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


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

   * 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

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

   * 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

  protected MenuFinder menuFinder;
  protected AddressBook addressBook;

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

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

   * @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

    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

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

TOP

Related Classes of org.eclipse.swtbot.swt.finder.finders.MenuFinder

Copyright © 2018 www.massapicom. 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.