Package net.sf.swtbot.matcher

Examples of net.sf.swtbot.matcher.AllMatcher


      }

      protected Widget getNextWidget(Widget widget) {
        Class nextWidget = nextWidget();
        if (!nextWidget.isInstance(widget)) {
          List allControls = findControls(new AllMatcher());
          int indexOf = allControls.indexOf(widget);
          for (Iterator iterator = allControls.listIterator(indexOf); iterator.hasNext();) {
            Object next = iterator.next();
            if (nextWidget.isInstance(next))
              return (Widget) next;
View Full Code Here


    if (view instanceof WorkbenchPartReference) {
      Control control = ((WorkbenchPartReference) view).getPane().getControl();
      boolean shouldFindInvisibleControls = finder.shouldFindInvisibleControls();
      finder.setShouldFindInvisibleControls(true);
      try {
        return (Widget) finder.findControls(control, new AllMatcher(), true).get(1);
      } catch (Exception e) {
        throw new WidgetNotFoundException("Could not find any control inside the view " + view.getPartName(), e);
      } finally {
        finder.setShouldFindInvisibleControls(shouldFindInvisibleControls);
      }
View Full Code Here

   *
   * @return The list of menus (IContributionItems).
   * @since 1.2
   */
  public List menus() {
    return getViewMenuFinder().findMenus((IViewReference) view, new AllMatcher(), true);
  }
View Full Code Here

      log.trace("Finding next widget after " + SWTUtils.toString(widget) + " that is of type "
          + ClassUtils.simpleClassName(nextWidgetType()));

    Class nextWidget = nextWidgetType();
    if (!nextWidget.isInstance(widget)) {
      List allControls = findControls(new AllMatcher());
      int indexOf = allControls.indexOf(widget);
      for (Iterator iterator = allControls.listIterator(indexOf); iterator.hasNext();) {
        Object next = iterator.next();
        if (nextWidget.isInstance(next)) {
          if (log.isTraceEnabled())
View Full Code Here

      }

      protected Widget getNextWidget(Widget widget) {
        Class nextWidget = nextWidget();
        if (!nextWidget.isInstance(widget)) {
          List allControls = findControls(new AllMatcher());
          int indexOf = allControls.indexOf(widget);
          for (Iterator iterator = allControls.listIterator(indexOf); iterator.hasNext();) {
            Object next = iterator.next();
            if (nextWidget.isInstance(next))
              return (Widget) next;
View Full Code Here

    if (view instanceof WorkbenchPartReference) {
      Control control = ((WorkbenchPartReference) view).getPane().getControl();
      boolean shouldFindInvisibleControls = finder.shouldFindInvisibleControls();
      finder.setShouldFindInvisibleControls(true);
      try {
        return (Widget) finder.findControls(control, new AllMatcher(), true).get(1);
      } catch (Exception e) {
        throw new WidgetNotFoundException("Could not find any control inside the view " + view.getPartName(), e);
      } finally {
        finder.setShouldFindInvisibleControls(shouldFindInvisibleControls);
      }
View Full Code Here

TOP

Related Classes of net.sf.swtbot.matcher.AllMatcher

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.