public abstract class GlobalSearchScope extends SearchScope implements ProjectAwareFileFilter
GlobalSearchScopes
Modifier and Type | Class and Description |
---|---|
static class |
GlobalSearchScope.FilesScope |
Modifier and Type | Field and Description |
---|---|
static GlobalSearchScope[] |
EMPTY_ARRAY |
static GlobalSearchScope |
EMPTY_SCOPE |
ALL, NONE
Modifier | Constructor and Description |
---|---|
protected |
GlobalSearchScope() |
protected |
GlobalSearchScope(Project project) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(VirtualFile file) |
static GlobalSearchScope |
allScope(Project project) |
int |
compare(VirtualFile file1,
VirtualFile file2) |
static GlobalSearchScope |
everythingScope(Project project) |
static GlobalSearchScope |
fileScope(Project project,
VirtualFile virtualFile) |
static GlobalSearchScope |
fileScope(Project project,
VirtualFile virtualFile,
java.lang.String displayName) |
static GlobalSearchScope |
fileScope(PsiFile psiFile) |
static GlobalSearchScope |
filesScope(Project project,
java.util.Collection<? extends VirtualFile> files)
Please consider using
this#filesWithLibrariesScope or this#filesWithoutLibrariesScope for optimization |
static GlobalSearchScope |
filesScope(Project project,
java.util.Collection<? extends VirtualFile> files,
java.lang.String displayName)
Please consider using
this#filesWithLibrariesScope or this#filesWithoutLibrariesScope for optimization |
static GlobalSearchScope |
filesWithLibrariesScope(Project project,
java.util.Collection<? extends VirtualFile> files) |
static GlobalSearchScope |
filesWithoutLibrariesScope(Project project,
java.util.Collection<? extends VirtualFile> files)
Optimization.
|
Project |
getProject() |
static GlobalSearchScope |
getScopeRestrictedByFileTypes(GlobalSearchScope scope,
FileType... fileTypes) |
java.util.Collection<UnloadedModuleDescription> |
getUnloadedModulesBelongingToScope()
Returns descriptions of unloaded modules content of whose might be included into this scope if they had been loaded.
|
GlobalSearchScope |
intersectWith(GlobalSearchScope scope) |
SearchScope |
intersectWith(LocalSearchScope localScope2) |
SearchScope |
intersectWith(SearchScope scope2) |
boolean |
isForceSearchingInLibrarySources() |
abstract boolean |
isSearchInLibraries() |
abstract boolean |
isSearchInModuleContent(Module aModule) |
boolean |
isSearchInModuleContent(Module aModule,
boolean testSources) |
static GlobalSearchScope |
moduleRuntimeScope(Module module,
boolean includeTests) |
static GlobalSearchScope |
moduleScope(Module module)
Returns module scope including sources and tests, excluding libraries and dependencies.
|
static GlobalSearchScope |
moduleTestsWithDependentsScope(Module module) |
static GlobalSearchScope |
moduleWithDependenciesAndLibrariesScope(Module module) |
static GlobalSearchScope |
moduleWithDependenciesAndLibrariesScope(Module module,
boolean includeTests) |
static GlobalSearchScope |
moduleWithDependenciesScope(Module module)
Returns module scope including sources, tests, and dependencies, excluding libraries.
|
static GlobalSearchScope |
moduleWithDependentsScope(Module module) |
static GlobalSearchScope |
moduleWithLibrariesScope(Module module)
Returns module scope including sources, tests, and libraries, excluding dependencies.
|
static GlobalSearchScope |
notScope(GlobalSearchScope scope) |
static GlobalSearchScope |
projectScope(Project project) |
static GlobalSearchScope |
union(java.util.Collection<? extends GlobalSearchScope> scopes) |
static GlobalSearchScope |
union(GlobalSearchScope [] scopes) |
GlobalSearchScope |
union(LocalSearchScope scope) |
GlobalSearchScope |
union(SearchScope scope) |
GlobalSearchScope |
uniteWith(GlobalSearchScope scope) |
calcHashCode, contains, getDisplayName, getIcon, hashCode
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
and
public static final GlobalSearchScope[] EMPTY_ARRAY
public static final GlobalSearchScope EMPTY_SCOPE
protected GlobalSearchScope(Project project)
protected GlobalSearchScope()
public Project getProject()
getProject
in interface ProjectAwareFileFilter
public int compare(VirtualFile file1, VirtualFile file2)
public abstract boolean isSearchInModuleContent(Module aModule)
public boolean isSearchInModuleContent(Module aModule, boolean testSources)
public final boolean accept(VirtualFile file)
accept
in interface VirtualFileFilter
public abstract boolean isSearchInLibraries()
public boolean isForceSearchingInLibrarySources()
public java.util.Collection<UnloadedModuleDescription> getUnloadedModulesBelongingToScope()
public GlobalSearchScope intersectWith(GlobalSearchScope scope)
public SearchScope intersectWith(SearchScope scope2)
intersectWith
in class SearchScope
public SearchScope intersectWith(LocalSearchScope localScope2)
public GlobalSearchScope union(SearchScope scope)
union
in class SearchScope
public GlobalSearchScope union(LocalSearchScope scope)
public GlobalSearchScope uniteWith(GlobalSearchScope scope)
public static GlobalSearchScope union(java.util.Collection<? extends GlobalSearchScope> scopes)
public static GlobalSearchScope union(GlobalSearchScope [] scopes)
public static GlobalSearchScope allScope(Project project)
public static GlobalSearchScope projectScope(Project project)
public static GlobalSearchScope everythingScope(Project project)
public static GlobalSearchScope notScope(GlobalSearchScope scope)
public static GlobalSearchScope moduleScope(Module module)
module
- the module to get the scope.public static GlobalSearchScope moduleWithLibrariesScope(Module module)
module
- the module to get the scope.public static GlobalSearchScope moduleWithDependenciesScope(Module module)
module
- the module to get the scope.public static GlobalSearchScope moduleRuntimeScope(Module module, boolean includeTests)
public static GlobalSearchScope moduleWithDependenciesAndLibrariesScope(Module module)
public static GlobalSearchScope moduleWithDependenciesAndLibrariesScope(Module module, boolean includeTests)
public static GlobalSearchScope moduleWithDependentsScope(Module module)
public static GlobalSearchScope moduleTestsWithDependentsScope(Module module)
public static GlobalSearchScope fileScope(PsiFile psiFile)
public static GlobalSearchScope fileScope(Project project, VirtualFile virtualFile)
public static GlobalSearchScope fileScope(Project project, VirtualFile virtualFile, java.lang.String displayName)
public static GlobalSearchScope filesScope(Project project, java.util.Collection<? extends VirtualFile> files)
this#filesWithLibrariesScope
or this#filesWithoutLibrariesScope
for optimizationpublic static GlobalSearchScope filesWithoutLibrariesScope(Project project, java.util.Collection<? extends VirtualFile> files)
public static GlobalSearchScope filesWithLibrariesScope(Project project, java.util.Collection<? extends VirtualFile> files)
public static GlobalSearchScope filesScope(Project project, java.util.Collection<? extends VirtualFile> files, java.lang.String displayName)
this#filesWithLibrariesScope
or this#filesWithoutLibrariesScope
for optimizationpublic static GlobalSearchScope getScopeRestrictedByFileTypes(GlobalSearchScope scope, FileType... fileTypes)