public class AbstractFileType extends UserFileType<AbstractFileType> implements ExternalizableFileType, CustomSyntaxTableFileType, PlainTextLikeFileType
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELEMENT_EXTENSION_MAP |
static java.lang.String |
ELEMENT_HIGHLIGHTING |
protected Commenter |
myCommenter |
protected SyntaxTable |
mySyntaxTable |
EMPTY_ARRAYEDITABLE_COPY_PREFIX| Constructor and Description |
|---|
AbstractFileType(SyntaxTable syntaxTable) |
| Modifier and Type | Method and Description |
|---|---|
AbstractFileType |
clone() |
void |
copyFrom(UserFileType newType) |
Commenter |
getCommenter() |
SettingsEditor<AbstractFileType> |
getEditor() |
SyntaxTable |
getSyntaxTable() |
boolean |
isBinary()
Returns
true if files of the specified type contain binary data. |
boolean |
isModified() |
void |
markDefaultSettings() |
void |
readExternal(Element typeElement) |
void |
setCommenter(Commenter commenter) |
void |
setSyntaxTable(SyntaxTable syntaxTable) |
void |
writeExternal(Element element) |
getCharset, getDefaultExtension, getDescription, getIcon, getName, isReadOnly, setDescription, setIcon, setIconPath, setName, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCharset, getDefaultExtension, getDescription, getIcon, getName, isReadOnlygetDisplayNameprotected SyntaxTable mySyntaxTable
protected Commenter myCommenter
public static final java.lang.String ELEMENT_HIGHLIGHTING
public static final java.lang.String ELEMENT_EXTENSION_MAP
public AbstractFileType(SyntaxTable syntaxTable)
public SyntaxTable getSyntaxTable()
getSyntaxTable in interface CustomSyntaxTableFileTypepublic Commenter getCommenter()
public void setSyntaxTable(SyntaxTable syntaxTable)
public AbstractFileType clone()
clone in class UserFileType<AbstractFileType>public void copyFrom(UserFileType newType)
copyFrom in class UserFileType<AbstractFileType>public boolean isBinary()
FileTypetrue if files of the specified type contain binary data. Used for source control, to-do items scanning and other purposes.public void readExternal(Element typeElement)
throws InvalidDataException
readExternal in interface JDOMExternalizableInvalidDataExceptionpublic void writeExternal(Element element)
writeExternal in interface JDOMExternalizablepublic void markDefaultSettings()
markDefaultSettings in interface ExternalizableFileTypepublic boolean isModified()
isModified in interface ExternalizableFileTypepublic SettingsEditor<AbstractFileType> getEditor()
getEditor in class UserFileType<AbstractFileType>public void setCommenter(Commenter commenter)