public interface FileTypeOverrider
FileTypeRegistry.FileTypeDetector
). An overridden file type
completely replaces the file's normal file type for PSI, actions and all other features.
If the override conditions for a given FileTypeOverrider
change, it needs to call
FileContentUtilCore.reparseFiles(VirtualFile...)
if it's possible to identify specific files affected
by the change, or FileTypeManagerEx.fireFileTypesChanged()
if the change affects an unknown number of files.Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<FileTypeOverrider> |
EP_NAME |
Modifier and Type | Method and Description |
---|---|
FileType |
getOverriddenFileType(VirtualFile file) |
static final ExtensionPointName<FileTypeOverrider> EP_NAME
FileType getOverriddenFileType(VirtualFile file)