public abstract class FileIndexFacade
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
FileIndexFacade(Project project) |
Modifier and Type | Method and Description |
---|---|
static FileIndexFacade |
getInstance(Project project) |
abstract Module |
getModuleForFile(VirtualFile file) |
abstract ModificationTracker |
getRootModificationTracker() |
abstract java.util.Collection<UnloadedModuleDescription> |
getUnloadedModuleDescriptions() |
abstract boolean |
isExcludedFile(VirtualFile file) |
abstract boolean |
isInContent(VirtualFile file) |
abstract boolean |
isInLibraryClasses(VirtualFile file) |
abstract boolean |
isInLibrarySource(VirtualFile file) |
boolean |
isInProjectScope(VirtualFile file) |
abstract boolean |
isInSource(VirtualFile file) |
abstract boolean |
isInSourceContent(VirtualFile file) |
abstract boolean |
isUnderIgnored(VirtualFile file) |
abstract boolean |
isValidAncestor(VirtualFile baseDir,
VirtualFile child)
Checks if
file is an ancestor of baseDir and none of the files
between them are excluded from the project. |
boolean |
shouldBeFound(GlobalSearchScope scope,
VirtualFile virtualFile)
Deprecated.
always returns true, just remove the calls
|
protected final Project myProject
protected FileIndexFacade(Project project)
public static FileIndexFacade getInstance(Project project)
public abstract boolean isInContent(VirtualFile file)
public abstract boolean isInSource(VirtualFile file)
public abstract boolean isInSourceContent(VirtualFile file)
public abstract boolean isInLibraryClasses(VirtualFile file)
public abstract boolean isInLibrarySource(VirtualFile file)
public abstract boolean isExcludedFile(VirtualFile file)
public abstract boolean isUnderIgnored(VirtualFile file)
public abstract Module getModuleForFile(VirtualFile file)
public abstract boolean isValidAncestor(VirtualFile baseDir, VirtualFile child)
file
is an ancestor of baseDir
and none of the files
between them are excluded from the project.baseDir
- the parent directory to check for ancestry.child
- the child directory or file to check for ancestry.@Deprecated public boolean shouldBeFound(GlobalSearchScope scope, VirtualFile virtualFile)
public abstract ModificationTracker getRootModificationTracker()
public abstract java.util.Collection<UnloadedModuleDescription> getUnloadedModuleDescriptions()
UnloadedModuleDescription
public boolean isInProjectScope(VirtualFile file)
file
is isInContent(com.intellij.openapi.vfs.VirtualFile)
except when it's in isInLibraryClasses(com.intellij.openapi.vfs.VirtualFile)
and not in isInLibrarySource(com.intellij.openapi.vfs.VirtualFile)