|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.intellij.openapi.fileTypes.UserFileType<T>
public abstract class UserFileType<T extends UserFileType>
| Field Summary |
|---|
| Fields inherited from interface com.intellij.openapi.fileTypes.FileType |
|---|
EMPTY_ARRAY |
| Constructor Summary | |
|---|---|
UserFileType()
|
|
| Method Summary | |
|---|---|
UserFileType |
clone()
|
void |
copyFrom(UserFileType newType)
|
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. |
abstract SettingsEditor<T> |
getEditor()
|
javax.swing.Icon |
getIcon()
Returns the icon used for showing files of the type. |
Language |
getLanguage()
|
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 |
isReadOnly()
Returns true if the specified file type is read-only. |
void |
setDescription(java.lang.String description)
|
void |
setIcon(javax.swing.Icon icon)
|
void |
setName(java.lang.String name)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.intellij.openapi.fileTypes.FileType |
|---|
getHighlighter, isBinary |
| Constructor Detail |
|---|
public UserFileType()
| Method Detail |
|---|
public abstract SettingsEditor<T> getEditor()
public UserFileType clone()
clone in class java.lang.Objectpublic java.lang.String getName()
FileType
getName in interface FileTypepublic java.lang.String getDescription()
FileType
getDescription in interface FileTypepublic void setName(java.lang.String name)
public void setDescription(java.lang.String description)
public java.lang.String getDefaultExtension()
FileType
getDefaultExtension in interface FileTypepublic javax.swing.Icon getIcon()
FileType
getIcon in interface FileTypepublic 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.public void copyFrom(UserFileType newType)
public void setIcon(javax.swing.Icon icon)
public StructureViewBuilder getStructureViewBuilder(VirtualFile file,
Project project)
FileType
getStructureViewBuilder in interface FileTypefile - The file for which the structure view builder is requested.project - The project to which the file belongs.
public Language getLanguage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||