Package com.e1c.langtool.storage.regex
Class AbstractRegExtFileEditor<T>
java.lang.Object
com.e1c.langtool.storage.regex.AbstractRegExtFileEditor<T>
- All Implemented Interfaces:
IFileEditor<T>
- Direct Known Subclasses:
RegExDictionaryFileEditor,YamlRegExFile
-
Field Details
-
file
protected final org.eclipse.core.resources.IFile file
-
-
Constructor Details
-
AbstractRegExtFileEditor
public AbstractRegExtFileEditor(org.eclipse.core.resources.IFile file)
-
-
Method Details
-
getFile
public org.eclipse.core.resources.IFile getFile()Description copied from interface:IFileEditorGets the file that was loaded.- Specified by:
getFilein interfaceIFileEditor<T>- Returns:
- the file
-
delete
public void delete()Description copied from interface:IFileEditorDelete storage file, associated with this object.- Specified by:
deletein interfaceIFileEditor<T>
-
isDirty
public boolean isDirty()Description copied from interface:IFileEditorChecks if the file is dirty.- Specified by:
isDirtyin interfaceIFileEditor<T>- Returns:
- the boolean
-
markDirty
public void markDirty()Description copied from interface:IFileEditorMark the file as dirty.- Specified by:
markDirtyin interfaceIFileEditor<T>
-