Examples of computeIndexLocation()


Examples of org.aspectj.org.eclipse.jdt.internal.core.search.indexing.IndexManager.computeIndexLocation()

  IndexManager manager = JavaModelManager.getJavaModelManager().getIndexManager();
  SimpleSet locations = new SimpleSet();
  IJavaElement focus = MatchLocator.projectOrJarFocus(this.pattern);
  if (focus == null) {
    for (int i = 0; i < projectsAndJars.length; i++)
      locations.add(manager.computeIndexLocation(projectsAndJars[i]));
  } else {
    try {
      // find the projects from projectsAndJars that see the focus then walk those projects looking for the jars from projectsAndJars
      int length = projectsAndJars.length;
      JavaProject[] projectsCanSeeFocus = new JavaProject[length];
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.core.search.indexing.IndexManager.computeIndexLocation()

        IPath path = projectsAndJars[i];
        JavaProject project = (JavaProject) getJavaProject(path, model);
        if (project != null) {
          visitedProjects.add(project);
          if (canSeeFocus(focus, project, focusEntries)) {
            locations.add(manager.computeIndexLocation(path));
            projectsCanSeeFocus[projectIndex++] = project;
          }
        } else {
          jarsToCheck.add(path);
        }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.core.search.indexing.IndexManager.computeIndexLocation()

        for (int j = entries.length; --j >= 0;) {
          IClasspathEntry entry = entries[j];
          if (entry.getEntryKind() == IClasspathEntry.CPE_LIBRARY) {
            IPath path = entry.getPath();
            if (jarsToCheck.includes(path)) {
              locations.add(manager.computeIndexLocation(entry.getPath()));
              jarsToCheck.remove(path);
            }
          }
        }
      }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.core.search.indexing.IndexManager.computeIndexLocation()

            for (int j = entries.length; --j >= 0;) {
              IClasspathEntry entry = entries[j];
              if (entry.getEntryKind() == IClasspathEntry.CPE_LIBRARY) {
                IPath path = entry.getPath();
                if (jarsToCheck.includes(path)) {
                  locations.add(manager.computeIndexLocation(entry.getPath()));
                  jarsToCheck.remove(path);
                }
              }
            }
          }
View Full Code Here

Examples of org.eclipse.jdt.internal.core.search.indexing.IndexManager.computeIndexLocation()

    for (int i = 0; i < projectsAndJars.length; i++) {
      IPath path = projectsAndJars[i];
      Object target = JavaModel.getTarget(path, false/*don't check existence*/);
      if (target instanceof IFolder) // case of an external folder
        path = ((IFolder) target).getFullPath();
      locations.add(manager.computeIndexLocation(path));
    }
  } else {
    try {
      // See whether the state builder might be used to reduce the number of index locations
   
View Full Code Here

Examples of org.eclipse.jdt.internal.core.search.indexing.IndexManager.computeIndexLocation()

        IPath path = projectsAndJars[i];
        JavaProject project = (JavaProject) getJavaProject(path, model);
        if (project != null) {
          visitedProjects.add(project);
          if (canSeeFocus(focuses, project, focusQualifiedNames)) {
            locations.add(manager.computeIndexLocation(path));
            projectsCanSeeFocus[projectIndex++] = project;
          }
        } else {
          externalLibsToCheck.add(path);
        }
View Full Code Here

Examples of org.eclipse.jdt.internal.core.search.indexing.IndexManager.computeIndexLocation()

            IPath path = entry.getPath();
            if (externalLibsToCheck.remove(path) != null) {
              Object target = JavaModel.getTarget(path, false/*don't check existence*/);
              if (target instanceof IFolder) // case of an external folder
                path = ((IFolder) target).getFullPath();
              locations.add(manager.computeIndexLocation(path));
            }
          }
        }
      }
      // jar files can be included in the search scope without including one of the projects that references them, so scan all projects that have not been visited
View Full Code Here

Examples of org.eclipse.jdt.internal.core.search.indexing.IndexManager.computeIndexLocation()

                IPath path = entry.getPath();
                if (externalLibsToCheck.remove(path) != null) {
                  Object target = JavaModel.getTarget(path, false/*don't check existence*/);
                  if (target instanceof IFolder) // case of an external folder
                    path = ((IFolder) target).getFullPath();
                  locations.add(manager.computeIndexLocation(path));
                }
              }
            }
          }
        }
View Full Code Here

Examples of org.eclipse.jdt.internal.core.search.indexing.IndexManager.computeIndexLocation()

    for (int i = 0; i < projectsAndJars.length; i++) {
      IPath path = projectsAndJars[i];
      Object target = JavaModel.getTarget(path, false/*don't check existence*/);
      if (target instanceof IFolder) // case of an external folder
        path = ((IFolder) target).getFullPath();
      locations.add(manager.computeIndexLocation(path));
    }
  } else {
    try {
      // See whether the state builder might be used to reduce the number of index locations
   
View Full Code Here

Examples of org.eclipse.jdt.internal.core.search.indexing.IndexManager.computeIndexLocation()

        IPath path = projectsAndJars[i];
        JavaProject project = (JavaProject) getJavaProject(path, model);
        if (project != null) {
          visitedProjects.add(project);
          if (canSeeFocus(focuses, project, focusQualifiedNames)) {
            locations.add(manager.computeIndexLocation(path));
            projectsCanSeeFocus[projectIndex++] = project;
          }
        } else {
          externalLibsToCheck.add(path);
        }
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.