|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FileType
| Field Summary | |
|---|---|
static FileType[] |
EMPTY_ARRAY
|
| Method Summary | |
|---|---|
java.lang.String |
getCharset(VirtualFile file)
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. |
SyntaxHighlighter |
getHighlighter(Project project)
Returns the syntax highlighter for the files of the type. |
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. |
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. |
| Field Detail |
|---|
static final FileType[] EMPTY_ARRAY
| Method Detail |
|---|
@NotNull java.lang.String getName()
@NotNull java.lang.String getDescription()
@NotNull java.lang.String getDefaultExtension()
@Nullable javax.swing.Icon getIcon()
boolean isBinary()
boolean isReadOnly()
@Nullable
java.lang.String getCharset(@NotNull
VirtualFile file)
file - The file for which the character set is requested.
Charset class.
@Nullable
SyntaxHighlighter getHighlighter(@Nullable
Project project)
project - The project in which the highligher will work, or null if the highlighter is not tied to any project.
@Nullable
StructureViewBuilder getStructureViewBuilder(@NotNull
VirtualFile file,
@NotNull
Project project)
file - The file for which the structure view builder is requested.project - The project to which the file belongs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||