Class QlTextEditor

java.lang.Object
com.e1c.langtool.v8.dt.xtext.AbstractXtextObjectTextEditor
com.e1c.langtool.v8.dt.ql.translator.QlTextEditor
All Implemented Interfaces:
ITextProcessor
Direct Known Subclasses:
RightQlTextEditor

public class QlTextEditor extends AbstractXtextObjectTextEditor
Query Schema text editor that allows to change text with model translation and script vairiant switch
  • Field Details

  • Constructor Details

  • Method Details

    • create

      public static QlTextEditor create(IProjectTranslationProvider translationProvider, QuerySchema object, boolean isDcs)
      Low-level factory method.
      Parameters:
      translationProvider - the translation provider
      object - the QueryShema object
      isDcs - true, if it is dcs query
      Returns:
      the ql text translate processor
      Throws:
      IllegalArgumentException - if the query created without parent object
    • getFieldMaps

      public List<Map<String,String>> getFieldMaps()
      Gets the translated field maps for each query of the package. Fields available after processing the query schema
      Returns:
      the field maps
    • 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
      Overrides:
      process in class AbstractXtextObjectTextEditor
      Parameters:
      monitor - the monitor, cannot be null
      Returns:
      the status of processing, cannot return null
    • createTreeVisitor

      protected MultiTextEditParseTreeVisitor createTreeVisitor(org.eclipse.text.edits.MultiTextEdit edit, org.eclipse.emf.ecore.EObject root, org.eclipse.core.runtime.IProgressMonitor monitor)
      Description copied from class: AbstractXtextObjectTextEditor
      Creates the Multi-edit tree visitor.
      Specified by:
      createTreeVisitor in class AbstractXtextObjectTextEditor
      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
    • dispose

      protected void dispose()
      Description copied from class: AbstractXtextObjectTextEditor
      Dispose internal resources of the editor.
      Overrides:
      dispose in class AbstractXtextObjectTextEditor