public class FrameworkDetectionIndex extends ScalarIndexExtension<java.lang.Integer>
Modifier and Type | Field and Description |
---|---|
static ID<java.lang.Integer,java.lang.Void> |
NAME |
VOID_DATA_EXTERNALIZER
EXTENSION_POINT_NAME
Constructor and Description |
---|
FrameworkDetectionIndex() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(FrameworkDetectionIndexListener listener,
Disposable parentDisposable) |
boolean |
dependsOnFileContent() |
DataIndexer<java.lang.Integer,java.lang.Void,FileContent> |
getIndexer() |
FileBasedIndex.InputFilter |
getInputFilter() |
static FrameworkDetectionIndex |
getInstance() |
KeyDescriptor<java.lang.Integer> |
getKeyDescriptor() |
ID<java.lang.Integer,java.lang.Void> |
getName() |
int |
getVersion() |
getValueExternalizer
getCacheSize, getFileTypesWithSizeLimitNotApplicable, hasSnapshotMapping, indexDirectories, keyIsUniqueForIndexedFile, needsForwardIndexWhenSharing, traceKeyHashToVirtualFileMapping
public static final ID<java.lang.Integer,java.lang.Void> NAME
public static FrameworkDetectionIndex getInstance()
public ID<java.lang.Integer,java.lang.Void> getName()
getName
in class FileBasedIndexExtension<java.lang.Integer,java.lang.Void>
public void addListener(FrameworkDetectionIndexListener listener, Disposable parentDisposable)
public DataIndexer<java.lang.Integer,java.lang.Void,FileContent> getIndexer()
getIndexer
in class IndexExtension<java.lang.Integer,java.lang.Void,FileContent>
public KeyDescriptor<java.lang.Integer> getKeyDescriptor()
getKeyDescriptor
in class IndexExtension<java.lang.Integer,java.lang.Void,FileContent>
public FileBasedIndex.InputFilter getInputFilter()
getInputFilter
in class FileBasedIndexExtension<java.lang.Integer,java.lang.Void>
IndexExtension.getIndexer()
.
Usually DefaultFileTypeSpecificInputFilter
can be used here to index only files with given file-type.
Note that check only file's extension is usually error-prone way and prefer to check VirtualFile.getFileType()
:
for example user can enforce language file as plain text one.public boolean dependsOnFileContent()
dependsOnFileContent
in class FileBasedIndexExtension<java.lang.Integer,java.lang.Void>
public int getVersion()
getVersion
in class IndexExtension<java.lang.Integer,java.lang.Void,FileContent>