public class SubstitutedFileType extends LanguageFileType
EMPTY_ARRAY
EDITABLE_COPY_PREFIX
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCharset(VirtualFile file,
byte [] content)
Returns the character set for the specified file.
|
java.lang.String |
getDefaultExtension()
Returns the default extension for files of the type.
|
java.lang.String |
getDescription()
Returns the user-readable description of the file type.
|
FileType |
getFileType() |
javax.swing.Icon |
getIcon()
Returns the icon used for showing files of the type.
|
java.lang.String |
getName()
Returns the name of the file type.
|
FileType |
getOriginalFileType() |
boolean |
isSameFileType() |
static FileType |
substituteFileType(VirtualFile file,
FileType fileType,
Project project) |
java.lang.String |
toString() |
extractCharsetFromFileContent, extractCharsetFromFileContent, getLanguage, isBinary, isJVMDebuggingSupported, isReadOnly, isSecondary
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDisplayName
public static FileType substituteFileType(VirtualFile file, FileType fileType, Project project)
public java.lang.String getName()
FileType
public java.lang.String getDescription()
FileType
public java.lang.String getDefaultExtension()
FileType
public javax.swing.Icon getIcon()
FileType
null
if no icon should be shown.public java.lang.String getCharset(VirtualFile file, byte [] content)
FileType
getCharset
in interface FileType
getCharset
in class LanguageFileType
file
- The file for which the character set is requested.content
- File content.Charset
class.public FileType getOriginalFileType()
public FileType getFileType()
public boolean isSameFileType()
public java.lang.String toString()
toString
in class java.lang.Object