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, shouldBeFound
protected ProjectFileIndexFacade(Project project)
public boolean isInContent(VirtualFile file)
isInContent
in class FileIndexFacade
public boolean isInSource(VirtualFile file)
isInSource
in class FileIndexFacade
public boolean isInSourceContent(VirtualFile file)
isInSourceContent
in class FileIndexFacade
public boolean isInLibraryClasses(VirtualFile file)
isInLibraryClasses
in class FileIndexFacade
public boolean isInLibrarySource(VirtualFile file)
isInLibrarySource
in class FileIndexFacade
public boolean isExcludedFile(VirtualFile file)
isExcludedFile
in class FileIndexFacade
public boolean isUnderIgnored(VirtualFile file)
isUnderIgnored
in class FileIndexFacade
public Module getModuleForFile(VirtualFile file)
getModuleForFile
in class FileIndexFacade
public boolean isValidAncestor(VirtualFile baseDir, VirtualFile childDir)
FileIndexFacade
file
is an ancestor of baseDir
and none of the files
between them are excluded from the project.isValidAncestor
in class FileIndexFacade
baseDir
- the parent directory to check for ancestry.childDir
- the child directory or file to check for ancestry.public ModificationTracker getRootModificationTracker()
getRootModificationTracker
in class FileIndexFacade
public java.util.Collection<UnloadedModuleDescription> getUnloadedModuleDescriptions()
getUnloadedModuleDescriptions
in class FileIndexFacade
UnloadedModuleDescription
public boolean isInProjectScope(VirtualFile file)
isInProjectScope
in class FileIndexFacade
file
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)