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_ARRAY
EDITABLE_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, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCharset, getDefaultExtension, getDescription, getIcon, getName, isReadOnly
getDisplayName
protected 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 CustomSyntaxTableFileType
public 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()
FileType
true
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 JDOMExternalizable
InvalidDataException
public void writeExternal(Element element)
writeExternal
in interface JDOMExternalizable
public void markDefaultSettings()
markDefaultSettings
in interface ExternalizableFileType
public boolean isModified()
isModified
in interface ExternalizableFileType
public SettingsEditor<AbstractFileType> getEditor()
getEditor
in class UserFileType<AbstractFileType>
public void setCommenter(Commenter commenter)