|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.adobe.flexbuilder.codemodel.search.SearchScope
SearcScopes tell the ISearchIndex the context of what the should search. They relate the base file in which to begin our search
and the context in which to constrain our search
| Nested Class Summary | |
static class |
SearchScope.SearchContext
Tells the ISearchIndex the context in which to search |
| Field Summary | |
static SearchScope.SearchContext |
FILE_CONTEXT
Context that specifies we should only search in a given file |
static SearchScope.SearchContext |
PROJECT_CONTEXT
Context that specifies we should only search in a given project, including class path entries |
static SearchScope.SearchContext |
PROJECT_CONTEXT_NO_CLASSPATH
Unit test only |
static SearchScope.SearchContext |
WORKSPACE_CONTEXT
Context that specifies we should search across the entire workspace |
| Method Summary | |
static SearchScope |
createFileScope(org.eclipse.core.resources.IFile file)
Creates a SearchScope that only searches across a specific file |
static SearchScope |
createProjectScope(org.eclipse.core.resources.IFile file)
Creates a SearchScope that only searches across a given project where the IFile is located |
static SearchScope |
createWorkspaceScope(org.eclipse.core.resources.IFile file)
Creates a SearchScope that searches across the entire workspace |
SearchScope.SearchContext |
getContext()
|
org.eclipse.core.resources.IFile |
getFile()
|
org.eclipse.core.runtime.IPath |
getPath()
|
void |
setIPath(org.eclipse.core.runtime.IPath path)
Sets the IPath of the base location of our scope |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final SearchScope.SearchContext FILE_CONTEXT
public static final SearchScope.SearchContext PROJECT_CONTEXT
public static final SearchScope.SearchContext WORKSPACE_CONTEXT
public static final SearchScope.SearchContext PROJECT_CONTEXT_NO_CLASSPATH
| Method Detail |
public org.eclipse.core.resources.IFile getFile()
IFile we began our search inpublic void setIPath(org.eclipse.core.runtime.IPath path)
IPath of the base location of our scope
path - public org.eclipse.core.runtime.IPath getPath()
IPath of our base search locationpublic SearchScope.SearchContext getContext()
SearchScope.SearchContext for this searchpublic static SearchScope createFileScope(org.eclipse.core.resources.IFile file)
SearchScope that only searches across a specific file
file - the IFile we should search in
SearchScopepublic static SearchScope createProjectScope(org.eclipse.core.resources.IFile file)
SearchScope that only searches across a given project where the IFile is located
file - the IFile we should determine our project from
SearchScopepublic static SearchScope createWorkspaceScope(org.eclipse.core.resources.IFile file)
SearchScope that searches across the entire workspace
file - the IFile we should begin our search in
SearchScope
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||