Package org.eclipse.jdt.internal.core.search.indexing

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


        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

            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

                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

    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

        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

            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

                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

    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

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