public abstract class UserFileType<T extends UserFileType> extends java.lang.Object implements FileType, java.lang.Cloneable
EMPTY_ARRAYEDITABLE_COPY_PREFIX| Constructor and Description |
|---|
UserFileType() |
| Modifier and Type | Method and Description |
|---|---|
UserFileType |
clone() |
void |
copyFrom(UserFileType newType) |
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.
|
abstract SettingsEditor<T> |
getEditor() |
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.
|
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 |
setIconPath(java.lang.String value) |
void |
setName(java.lang.String name) |
java.lang.String |
toString() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDisplayNamepublic abstract SettingsEditor<T> getEditor()
public UserFileType clone()
clone in class java.lang.Objectpublic java.lang.String getName()
FileTypepublic java.lang.String getDescription()
FileTypegetDescription in interface FileTypepublic void setName(java.lang.String name)
public void setDescription(java.lang.String description)
public java.lang.String getDefaultExtension()
FileTypegetDefaultExtension in interface FileTypepublic javax.swing.Icon getIcon()
FileTypepublic boolean isReadOnly()
FileTypetrue if the specified file type is read-only. Read-only file types are not shown in the "File Types" settings dialog,
and users cannot change the extensions associated with the file type.isReadOnly in interface FileTypetrue if the file type is read-only, false otherwise.public java.lang.String getCharset(VirtualFile file, byte [] content)
FileTypegetCharset in interface FileTypefile - The file for which the character set is requested.content - File content.Charset class.public void copyFrom(UserFileType newType)
public void setIcon(javax.swing.Icon icon)
public void setIconPath(java.lang.String value)
public java.lang.String toString()
toString in class java.lang.Object