Package org.springsource.ide.eclipse.commons.completions.externaltype

Examples of org.springsource.ide.eclipse.commons.completions.externaltype.ExternalType


            Assert.isLegal(parentElement instanceof MavenCoordinates, "parent of artifact should always be another artififact");
            dgraph.addEdge(thisElement, parentElement);
          }
        }
      } else if (qName.equals("type")) {
        ExternalType type = ExternalType_parse(attributes.getValue("id"));
        thisElement = type;
        Assert.isLegal(parentElement instanceof MavenCoordinates, "parent of a type should be an artifact (that contains it) but it was: "+parentElement);
        dgraph.addEdge(thisElement, parentElement);
      }
      //else { ... something we don't care about ... }
View Full Code Here


    private ExternalType ExternalType_parse(String fqName) {
      int split = fqName.lastIndexOf('.');
      if (split>0) {
        String name = fqName.substring(split+1);
        String packageName = fqName.substring(0, split);
        return new ExternalType(intern(name),intern(packageName));
      } else {
        throw new IllegalArgumentException("Invalid fqName: "+fqName);
      }
    }
View Full Code Here

      for (Object node : nodes) {
 
        //Not all non-leaf nodes in the graph represent types. Some (fewer) of them represent artifacts
        // that were added to the graph because they are depended on by other artifacts.
        if (node instanceof ExternalType) {
          ExternalType type = (ExternalType) node;
          requestor.receive(new ExternalTypeEntry(type, new DGraphTypeSource(dgraph, type)));
        }
 
        if (DEBUG) {
          if (node instanceof MavenCoordinates) {
View Full Code Here

TOP

Related Classes of org.springsource.ide.eclipse.commons.completions.externaltype.ExternalType

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.