Class AbstractXtextObjectTextEditor

java.lang.Object
com.e1c.langtool.v8.dt.xtext.AbstractXtextObjectTextEditor
All Implemented Interfaces:
ITextProcessor
Direct Known Subclasses:
ModuleTextEditor, QlTextEditor, TemplateTextEditor

public abstract class AbstractXtextObjectTextEditor extends Object implements ITextProcessor
Abstract class for any Xtext language text processor that makes changes on processing
  • Constructor Details

    • AbstractXtextObjectTextEditor

      public AbstractXtextObjectTextEditor(org.eclipse.emf.ecore.EObject root)
  • Method Details

    • process

      public org.eclipse.core.runtime.IStatus process(org.eclipse.core.runtime.IProgressMonitor monitor)
      Description copied from interface: ITextProcessor
      Process the text.
      Specified by:
      process in interface ITextProcessor
      Parameters:
      monitor - the monitor, cannot be null
      Returns:
      the status of processing, cannot return null
    • createTreeVisitor

      protected abstract MultiTextEditParseTreeVisitor createTreeVisitor(org.eclipse.text.edits.MultiTextEdit edit, org.eclipse.emf.ecore.EObject root, org.eclipse.core.runtime.IProgressMonitor monitor)
      Creates the Multi-edit tree visitor.
      Parameters:
      edit - the edit instance, cannot be null
      root - the root object, cannot be null
      monitor - the monitor, cannot be null
      Returns:
      the multi text edit parse tree visitor
    • getSourceText

      public String getSourceText()
      Description copied from interface: ITextProcessor
      Gets the source text that didn't modified.
      Specified by:
      getSourceText in interface ITextProcessor
      Returns:
      the source text, cannot return null.
    • getProcessedText

      public String getProcessedText()
      Description copied from interface: ITextProcessor
      Gets the processed text that can be modified or same as source text.
      Specified by:
      getProcessedText in interface ITextProcessor
      Returns:
      the processed text or the source text, cannot return null.
    • dispose

      protected void dispose()
      Dispose internal resources of the editor.