Examples of lookupAll()


Examples of org.openide.util.Lookup.lookupAll()

    // see http://netbeans-org.1045718.n5.nabble.com/Lookup-current-active-Project-td3036983.html
    public Project getCurrentProject() {

        Lookup lookup = Utilities.actionsGlobalContext();

        for (Project p : lookup.lookupAll(Project.class)) {
            return p;
        }

        for (DataObject dObj : lookup.lookupAll(DataObject.class)) {
            FileObject fObj = dObj.getPrimaryFile();
View Full Code Here

Examples of org.openide.util.Lookup.lookupAll()

        for (Project p : lookup.lookupAll(Project.class)) {
            return p;
        }

        for (DataObject dObj : lookup.lookupAll(DataObject.class)) {
            FileObject fObj = dObj.getPrimaryFile();
            Project p = FileOwnerQuery.getOwner(fObj);
            if (p != null) {
                return p;
            }
View Full Code Here

Examples of org.quartz.impl.SchedulerRepository.lookupAll()

    }
    return !isNextRunSameDay;
  }
  public static Date getNextRunTime(String jobName) throws Exception {
    SchedulerRepository sr = SchedulerRepository.getInstance();
    Collection<Scheduler> sc = sr.lookupAll();
    if (sc == null) {
      ApplicationException.exception(CommonMessageID.NOT_FOUND.getMessage("Scheduler"));
    }
    Trigger[] tl = null;
    for (Scheduler s : sc) {
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.