Examples of Psr


Examples of com.dubture.getcomposer.core.collection.Psr

  }

  @Override
  public Object[] getChildren(Object parentElement) {
    if (parentElement instanceof Psr) {
      Psr psr0 = (Psr) parentElement;
      return psr0.getNamespaces().toArray();
    } else if (parentElement instanceof Namespace) {
      Namespace model = (Namespace) parentElement;
      return model.getPaths().toArray();
    }
View Full Code Here

Examples of com.dubture.getcomposer.core.collection.Psr

    public boolean visit(ArrayCreation s) throws Exception
    {
        visitor = new NamespaceVisitor();
        s.traverse(visitor);
       
        Psr psr0 = visitor.getPsr0();
       
        if (psr0.size() > 0) {
          ModelAccess.getInstance().updatePsr0(psr0, source.getScriptProject());
        }
       
        return true;
    }
View Full Code Here

Examples of com.dubture.getcomposer.core.collection.Psr

    {
      IEclipsePreferences instancePreferences = ConfigurationScope.INSTANCE.getNode(ComposerPlugin.ID);
        for (IProject project : ResourcesPlugin.getWorkspace().getRoot().getProjects()) {
            String prefKey = "namespacemap#" + project.getName();
            String json = instancePreferences.get(prefKey, "{}");
           psr0Map.put(project.getName(), new Psr(json));
        Logger.debug("loading namespacemap from preferences for project " + project.getName() + " " + json);
        }
    }
View Full Code Here

Examples of com.dubture.getcomposer.core.collection.Psr

       
        if (!psr0Map.containsKey(resource.getProject().getName())) {
            return null;
        }
       
        Psr namespaces = psr0Map.get(resource.getProject().getName());
       
        for(Namespace namespace : namespaces) {
          for(Object object : namespace.getPaths()) {
            if (!(object instanceof String)) {
              continue;
View Full Code Here

Examples of com.dubture.getcomposer.core.collection.Psr

   
    if (!psr0Map.containsKey(project.getName()) || namespace == null) {
      return null;
    }
   
    Psr psr0 = psr0Map.get(project.getName());

    String nsPath = namespace.replace("\\", "/");
    for (Namespace ns : psr0) {
      String other = ns.getNamespace();
      if (namespace.startsWith(other)) {
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.