org.aspectj.org.eclipse.jdt.internal.core.search
Class IndexSelector

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.core.search.IndexSelector

public class IndexSelector
extends java.lang.Object

Selects the indexes that correspond to projects in a given search scope and that are dependent on a given focus element.


Field Summary
static int PROJECT_CAN_NOT_SEE_FOCUS
           
static int PROJECT_CAN_SEE_FOCUS
           
static int PROJECT_SOURCE_CAN_NOT_SEE_FOCUS
           
 
Constructor Summary
IndexSelector(IJavaSearchScope searchScope, SearchPattern pattern)
           
 
Method Summary
static int canSeeFocus(SearchPattern pattern, IPath projectOrJarPath)
          Returns whether elements of the given project or jar can see the given focus (an IJavaProject or a JarPackageFragmentRot) either because the focus is part of the project or the jar, or because it is accessible throught the project's classpath
 IndexLocation[] getIndexLocations()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROJECT_CAN_SEE_FOCUS

public static final int PROJECT_CAN_SEE_FOCUS
See Also:
Constant Field Values

PROJECT_SOURCE_CAN_NOT_SEE_FOCUS

public static final int PROJECT_SOURCE_CAN_NOT_SEE_FOCUS
See Also:
Constant Field Values

PROJECT_CAN_NOT_SEE_FOCUS

public static final int PROJECT_CAN_NOT_SEE_FOCUS
See Also:
Constant Field Values
Constructor Detail

IndexSelector

public IndexSelector(IJavaSearchScope searchScope,
                     SearchPattern pattern)
Method Detail

canSeeFocus

public static int canSeeFocus(SearchPattern pattern,
                              IPath projectOrJarPath)
Returns whether elements of the given project or jar can see the given focus (an IJavaProject or a JarPackageFragmentRot) either because the focus is part of the project or the jar, or because it is accessible throught the project's classpath


getIndexLocations

public IndexLocation[] getIndexLocations()