Class AbstractRegExtFileEditor<T>

java.lang.Object
com.e1c.langtool.storage.regex.AbstractRegExtFileEditor<T>
All Implemented Interfaces:
IFileEditor<T>
Direct Known Subclasses:
RegExDictionaryFileEditor, YamlRegExFile

public abstract class AbstractRegExtFileEditor<T> extends Object implements IFileEditor<T>
  • 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: IFileEditor
      Gets the file that was loaded.
      Specified by:
      getFile in interface IFileEditor<T>
      Returns:
      the file
    • delete

      public void delete()
      Description copied from interface: IFileEditor
      Delete storage file, associated with this object.
      Specified by:
      delete in interface IFileEditor<T>
    • isDirty

      public boolean isDirty()
      Description copied from interface: IFileEditor
      Checks if the file is dirty.
      Specified by:
      isDirty in interface IFileEditor<T>
      Returns:
      the boolean
    • markDirty

      public void markDirty()
      Description copied from interface: IFileEditor
      Mark the file as dirty.
      Specified by:
      markDirty in interface IFileEditor<T>