public class ProjectFileIndexFacade extends FileIndexFacade
myProject| Modifier | Constructor and Description |
|---|---|
protected |
ProjectFileIndexFacade(Project project) |
| Modifier and Type | Method and Description |
|---|---|
Module |
getModuleForFile(VirtualFile file) |
ModificationTracker |
getRootModificationTracker() |
java.util.Collection<UnloadedModuleDescription> |
getUnloadedModuleDescriptions() |
boolean |
isExcludedFile(VirtualFile file) |
boolean |
isInContent(VirtualFile file) |
boolean |
isInLibraryClasses(VirtualFile file) |
boolean |
isInLibrarySource(VirtualFile file) |
boolean |
isInProjectScope(VirtualFile file) |
boolean |
isInSource(VirtualFile file) |
boolean |
isInSourceContent(VirtualFile file) |
boolean |
isUnderIgnored(VirtualFile file) |
boolean |
isValidAncestor(VirtualFile baseDir,
VirtualFile childDir)
Checks if
file is an ancestor of baseDir and none of the files
between them are excluded from the project. |
getInstance, shouldBeFoundprotected ProjectFileIndexFacade(Project project)
public boolean isInContent(VirtualFile file)
isInContent in class FileIndexFacadepublic boolean isInSource(VirtualFile file)
isInSource in class FileIndexFacadepublic boolean isInSourceContent(VirtualFile file)
isInSourceContent in class FileIndexFacadepublic boolean isInLibraryClasses(VirtualFile file)
isInLibraryClasses in class FileIndexFacadepublic boolean isInLibrarySource(VirtualFile file)
isInLibrarySource in class FileIndexFacadepublic boolean isExcludedFile(VirtualFile file)
isExcludedFile in class FileIndexFacadepublic boolean isUnderIgnored(VirtualFile file)
isUnderIgnored in class FileIndexFacadepublic Module getModuleForFile(VirtualFile file)
getModuleForFile in class FileIndexFacadepublic boolean isValidAncestor(VirtualFile baseDir, VirtualFile childDir)
FileIndexFacadefile is an ancestor of baseDir and none of the files
between them are excluded from the project.isValidAncestor in class FileIndexFacadebaseDir - the parent directory to check for ancestry.childDir - the child directory or file to check for ancestry.public ModificationTracker getRootModificationTracker()
getRootModificationTracker in class FileIndexFacadepublic java.util.Collection<UnloadedModuleDescription> getUnloadedModuleDescriptions()
getUnloadedModuleDescriptions in class FileIndexFacadeUnloadedModuleDescriptionpublic boolean isInProjectScope(VirtualFile file)
isInProjectScope in class FileIndexFacadefile is FileIndexFacade.isInContent(com.intellij.openapi.vfs.VirtualFile) except when it's in FileIndexFacade.isInLibraryClasses(com.intellij.openapi.vfs.VirtualFile) and not in FileIndexFacade.isInLibrarySource(com.intellij.openapi.vfs.VirtualFile)