Package org.eclipse.php.internal.core.filenetwork.ReferenceTree

Examples of org.eclipse.php.internal.core.filenetwork.ReferenceTree.Node


      IProgressMonitor monitor) {

    HashSet<ISourceModule> processedFiles = new HashSet<ISourceModule>();
    processedFiles.add(file);

    Node root = new Node(file);

    internalBuildReferencingFilesTree(root, processedFiles,
        new HashMap<IModelElement, IField[]>(), monitor);

    return new ReferenceTree(root);
View Full Code Here


      // If this is the correct include (that means that included file is
      // the original file):
      if (file.equals(testFile)
          && !processedFiles.contains(referencingFile)) {
        processedFiles.add(referencingFile);
        Node node = new Node(referencingFile);
        root.addChild(node);
      }
    }

    Collection<Node> children = root.getChildren();
View Full Code Here

      Map<ISourceModule, Node> cachedTrees, IProgressMonitor monitor) {

    HashSet<ISourceModule> processedFiles = new HashSet<ISourceModule>();
    processedFiles.add(file);

    Node root;
    if (cachedTrees == null || (root = cachedTrees.get(file)) == null) {
      root = new Node(file);
      try {
        internalBuildReferencedFilesTree(root, processedFiles,
            cachedTrees, monitor);
      } catch (CoreException e) {
        Logger.logException(e);
View Full Code Here

      if (testFile != null && !processedFiles.contains(testFile)) {
        processedFiles.add(testFile);

        if (cachedTrees != null) {
          // use cached nodes from other trees:
          Node child = cachedTrees.get(testFile);
          if (child != null) {
            root.addChild(child);
            continue;
          }
        }
        Node child = new Node(testFile);
        nodesToBuild.add(child);
        root.addChild(child);

        if (cachedTrees != null) {
          // cache this tree node:
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.core.filenetwork.ReferenceTree.Node

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.