Examples of Finder


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

  /**
   * @param matcher a matcher.
   * @return a widget within the parent widget that matches the specified matcher.
   */
  protected <S extends Widget> List<? extends S> findWidgets(Matcher<S> matcher) {
    Finder finder = bot.getFinder();
    Control control = getControl();
    boolean shouldFindInvisibleControls = finder.shouldFindInvisibleControls();
    finder.setShouldFindInvisibleControls(true);
    try {
      return bot.widgets(matcher, control);
    } catch (Exception e) {
      throw new WidgetNotFoundException("Could not find any control inside the view " + partReference.getPartName(), e); //$NON-NLS-1$
    } finally {
      finder.setShouldFindInvisibleControls(shouldFindInvisibleControls);
    }
  }
View Full Code Here

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

   *
   * @param controlFinder the {@link ControlFinder} used to identify and find controls.
   * @param menuFinder the {@link MenuFinder} used to find menu items.
   */
  public SWTBot(ControlFinder controlFinder, MenuFinder menuFinder) {
    this(new Finder(controlFinder, menuFinder));
  }
View Full Code Here

Examples of org.fedorahosted.cobbler.Finder

    private Map<String, Distro> getAllCobblerDistros() {
        Map<String, Distro> distros = new HashMap<String, Distro>();

        CobblerConnection conn = getConnection();
        Finder finder = Finder.getInstance();
        List<? extends CobblerObject> objs = finder.listItems(conn, ObjectType.DISTRO);
        for (CobblerObject obj : objs) {
            if (obj instanceof Distro) {
                distros.put(((Distro) obj).getName(), (Distro) obj);
            } else {
                log.error("Instead of a distro, Cobbler returned an object of type [" + obj.getClass() + "]: " + obj);
View Full Code Here

Examples of org.fedorahosted.cobbler.Finder

    private List<Profile> getAllCobblerProfiles() {
        List<Profile> profiles = new ArrayList<Profile>();

        CobblerConnection conn = getConnection();
        Finder finder = Finder.getInstance();
        List<? extends CobblerObject> objs = finder.listItems(conn, ObjectType.PROFILE);
        for (CobblerObject obj : objs) {
            if (obj instanceof Profile) {
                profiles.add((Profile) obj);
            } else {
                log.error("Instead of a profile, Cobbler returned an object of type [" + obj.getClass() + "]: " + obj);
View Full Code Here

Examples of org.gedcom4j.query.Finder

        assertNotNull(g);
        assertEquals("There are supposed to be 43 people in the gedcom - are you using the right file/file version?",
                43, g.individuals.size());
        assertEquals("There are supposed to be 18 families in the gedcom - are you using the right file/file version?",
                18, g.families.size());
        finder = new Finder(g);
    }
View Full Code Here

Examples of org.openfaces.util.Finder

        String componentId = component.getClientId(getFacesContext());
        ClientValidationSupport cvs;
        if (renderToClientValidationSupport.containsKey(componentId)) {
            cvs = renderToClientValidationSupport.get(componentId);
        } else {
            Finder finder = new Finder(component) {
                public boolean test(UIComponent component) {
                    return component instanceof ClientValidationSupport;
                }
            };
            cvs = (ClientValidationSupport) finder.getComponent();
            renderToClientValidationSupport.put(componentId, cvs);
        }
        return cvs;
    }
View Full Code Here

Examples of org.restlet.resource.Finder

  public QueryTypeRouter(Context context) {
    this(context, (Restlet)null);
  }

  public QueryTypeRouter(Context context, Class<? extends ServerResource> nonQueryHandler) {
    this(context, new Finder(context, nonQueryHandler));
  }
View Full Code Here

Examples of org.restlet.resource.Finder

  }

  public QueryTypeRouter(Context context, Restlet nonQueryHandler) {
    super(context);
    this.nonQueryHandler = nonQueryHandler;
    tupleQueryHandler = new Finder(context, TupleQueryResource.class);
    graphQueryHandler = new Finder(context, GraphQueryResource.class);
    booleanQueryHandler = new Finder(context, BooleanQueryResource.class);
  }
View Full Code Here

Examples of org.restlet.resource.Finder

public class QueryParser extends Filter {

  private final Logger logger = LoggerFactory.getLogger(this.getClass());

  public QueryParser(Context context, Class<? extends ServerResource> next) {
    this(context, new Finder(context, next));
  }
View Full Code Here

Examples of org.restlet.resource.Finder

    router.attach("", new QueryParser(c, QueryListResource.class));
    return router;
  }

  protected Restlet createSessionPath(Context c) {
    Restlet result = new Finder(c, SessionResource.class);

    String casServerURL = System.getProperty("org.openrdf.auth.cas.server");
    if (casServerURL != null) {
      result = new CasAuthFilter(casServerURL, c, result);
    }
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.