|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.intellij.openapi.fileTypes.LanguageFileType
public abstract class LanguageFileType
Kind of file types capable to provide Language.
| Field Summary |
|---|
| Fields inherited from interface com.intellij.openapi.fileTypes.FileType |
|---|
EMPTY_ARRAY |
| Constructor Summary | |
|---|---|
protected |
LanguageFileType(Language language)
Creates a language file type for the specified language. |
| Method Summary | |
|---|---|
java.lang.String |
getCharset(VirtualFile file)
Returns the character set for the specified file. |
SyntaxHighlighter |
getHighlighter(Project project)
Returns the syntax highlighter for the files of the type. |
Language |
getLanguage()
Returns the language used in the files of the type. |
StructureViewBuilder |
getStructureViewBuilder(VirtualFile file,
Project project)
Returns the structure view builder for the specified file. |
boolean |
isBinary()
Returns true if files of the specified type contain binary data. |
boolean |
isReadOnly()
Returns true if the specified file type is read-only. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.intellij.openapi.fileTypes.FileType |
|---|
getDefaultExtension, getDescription, getIcon, getName |
| Constructor Detail |
|---|
protected LanguageFileType(@NotNull
Language language)
language - The language used in the files of the type.| Method Detail |
|---|
@NotNull public final Language getLanguage()
@NotNull
public final SyntaxHighlighter getHighlighter(@Nullable
Project project)
getHighlighter in interface FileTypeproject - The project in which the highligher will work, or null if the highlighter is not tied to any project.
@Nullable
public StructureViewBuilder getStructureViewBuilder(@NotNull
VirtualFile file,
@NotNull
Project project)
getStructureViewBuilder in interface FileTypefile - The file for which the structure view builder is requested.project - The project to which the file belongs.
public final boolean isBinary()
FileType
isBinary in interface FileTypepublic final boolean isReadOnly()
FileType
isReadOnly in interface FileTypepublic java.lang.String getCharset(VirtualFile file)
FileType
getCharset in interface FileTypefile - The file for which the character set is requested.
Charset class.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||