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

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


        } else
          log.trace(MessageFormat.format("did not match {0} with text \"{1}\", using matcher: {2}", ClassUtils.simpleClassName(item), text, StringDescription.toString(this))); //$NON-NLS-1$
      }

      if (log.isTraceEnabled() && (item instanceof Widget)) {
        PathGenerator pathGenerator = new PathGenerator();
        TreePath path = pathGenerator.getPath((Widget) item);
        int segmentCount = path.getSegmentCount();

        String prefix = ""; //$NON-NLS-1$
        for (int i = 0; i < segmentCount - 1; i++)
          prefix += "    "; //$NON-NLS-1$
View Full Code Here


    this.matcher = matcher;
  }

  protected boolean doMatch(Object obj) {
    Widget previousWidget = SWTUtils.previousWidget((Widget) obj);
    TreePath path = new PathGenerator().getPath((Widget) obj);
    int segmentCount = path.getSegmentCount();
    for (int i = 1; i < segmentCount; i++) {
      previousWidget = (Widget) path.getSegment(segmentCount - i - 1);
      if ((previousWidget instanceof Group) && matcher.matches(previousWidget))
        return true;
View Full Code Here

    this.matcher = matcher;
  }

  protected boolean doMatch(Object obj) {
    Widget previousWidget = SWTUtils.previousWidget((Widget) obj);
    TreePath path = new PathGenerator().getPath((Widget) obj);
    int segmentCount = path.getSegmentCount();
    for (int i = 1; i < segmentCount; i++) {
      previousWidget = (Widget) path.getSegment(segmentCount - i - 1);
      if ((previousWidget instanceof Group) && matcher.matches(previousWidget))
        return true;
View Full Code Here

    buf.append("\n"); //$NON-NLS-1$
  }

  public void getLocationInformation(Control control, StringBuffer buf) {
    TreePath path = controlFinder.getPath(control);
    String stringFromPath = new PathGenerator().getPathAsString(path);
    buf.append("Location: \n").append(stringFromPath).append("\n\n"); //$NON-NLS-1$ //$NON-NLS-2$
  }
View Full Code Here

TOP

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

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.