Examples of ProjectLocator


Examples of net.sourceforge.processdash.tool.db.ProjectLocator

        List projectIDs = collapseLists(arguments, 0);
        String listenerName = asStringVal(context
                .get(SubscribingExpressionContext.LISTENERVAR_NAME));

        try {
            ProjectLocator loc = getDbObject(context, ProjectLocator.class);
            if (loc == null)
                return null;

            ListData result = new ListData();
            for (Iterator i = projectIDs.iterator(); i.hasNext();) {
                Integer key = null;

                String oneProjectId = asStringVal(i.next());
                if (oneProjectId != null)
                    key = loc.getKeyForProject(oneProjectId, listenerName);

                if (key == null)
                    key = -999;
                result.add(new ImmutableDoubleData(key, false, true));
            }
View Full Code Here

Examples of net.sourceforge.processdash.tool.db.ProjectLocator

            TableModel tasks, Date fromDate, Date toDate) {
        DatabasePlugin db = getDashboardContext().getDatabasePlugin();
        if (db == null)
            return;

        ProjectLocator loc = db.getObject(ProjectLocator.class);
        QueryRunner query = db.getObject(QueryRunner.class);
        if (loc == null || query == null)
            return;

        int fromDateKey = DatabasePluginUtils.getKeyForDate(fromDate, 10000);
View Full Code Here

Examples of org.gradle.nativeplatform.internal.resolve.ProjectLocator

    @RuleSource
    public static class Rules {
        @Model
        public static VisualStudioExtensionInternal visualStudio(ServiceRegistry serviceRegistry) {
            Instantiator instantiator = serviceRegistry.get(Instantiator.class);
            ProjectLocator projectLocator = serviceRegistry.get(ProjectLocator.class);
            FileResolver fileResolver = serviceRegistry.get(FileResolver.class);

            return instantiator.newInstance(DefaultVisualStudioExtension.class, instantiator, projectLocator, fileResolver);
        }
View Full Code Here

Examples of org.jboss.forge.addon.projects.ProjectLocator

      for (ExportedInstance<ProjectLocator> instance : registry.getExportedInstances(ProjectLocator.class))
      {
         DirectoryResource r = (target instanceof DirectoryResource) ? (DirectoryResource) target : target.getParent();
         while (r != null && result == null)
         {
            ProjectLocator locator = instance.get();
            if (locator.containsProject(r))
            {
               result = locator.createProject(r);
               if (!filter.accept(result))
                  result = null;
            }

            r = r.getParent();
View Full Code Here

Examples of org.jboss.forge.addon.projects.ProjectLocator

   public Project createProject(DirectoryResource target, Iterable<Class<? extends ProjectFacet>> facetTypes)
   {
      Project result = null;
      for (ExportedInstance<ProjectLocator> instance : registry.getExportedInstances(ProjectLocator.class))
      {
         ProjectLocator locator = instance.get();
         result = locator.createProject(target);
         if (result != null)
            break;
      }

      if (result != null)
View Full Code Here

Examples of org.jboss.forge.addon.projects.ProjectLocator

      for (ExportedInstance<ProjectLocator> instance : registry.getExportedInstances(ProjectLocator.class))
      {
         DirectoryResource r = (target instanceof DirectoryResource) ? (DirectoryResource) target : target.getParent();
         while (r != null && result == null)
         {
            ProjectLocator locator = instance.get();
            if (locator.containsProject(r))
            {
               result = locator.createProject(r);
               if (!filter.accept(result))
                  result = null;
            }

            r = r.getParent();
View Full Code Here

Examples of org.jboss.forge.addon.projects.ProjectLocator

   public Project createProject(DirectoryResource target, Iterable<Class<? extends ProjectFacet>> facetTypes)
   {
      Project result = null;
      for (ExportedInstance<ProjectLocator> instance : registry.getExportedInstances(ProjectLocator.class))
      {
         ProjectLocator locator = instance.get();
         result = locator.createProject(target);
         if (result != null)
            break;
      }

      if (result != null)
View Full Code Here

Examples of org.jboss.forge.project.locator.ProjectLocator

      {
         Iterator<ProjectLocator> iterator = locatorInstance.iterator();
         List<ProjectLocator> result = new ArrayList<ProjectLocator>();
         while (iterator.hasNext())
         {
            ProjectLocator element = BeanManagerUtils.getContextualInstance(manager, iterator.next().getClass());
            result.add(element);
         }
         this.locators = result;
      }
   }
View Full Code Here

Examples of org.jboss.forge.project.locator.ProjectLocator

        {
            Iterator<ProjectLocator> iterator = locatorInstance.iterator();
            List<ProjectLocator> result = new ArrayList<ProjectLocator>();
            while (iterator.hasNext())
            {
                ProjectLocator element = BeanManagerUtils.getContextualInstance(manager, iterator.next().getClass());
                result.add(element);
            }
            this.locators = result;
        }
    }
View Full Code Here

Examples of org.jboss.forge.project.locator.ProjectLocator

   {
      Iterator<ProjectLocator> iterator = locatorInstance.iterator();
      List<ProjectLocator> result = new ArrayList<ProjectLocator>();
      while (iterator.hasNext())
      {
         ProjectLocator element = BeanManagerUtils.getContextualInstance(manager, iterator.next().getClass());
         result.add(element);
      }
      this.locators = 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.