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
Query Schema text editor that allows to change text with model translation and script vairiant switch
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedQlTextEditor(org.eclipse.emf.ecore.EObject root, IProjectTranslationProvider translationProvider, boolean isDcs, IDependentQuerySchemaProvider dependentModelProvider) -
Method Summary
Modifier and TypeMethodDescriptionstatic QlTextEditorcreate(IProjectTranslationProvider translationProvider, QuerySchema object, boolean isDcs) Low-level factory method.protected MultiTextEditParseTreeVisitorcreateTreeVisitor(org.eclipse.text.edits.MultiTextEdit edit, org.eclipse.emf.ecore.EObject root, org.eclipse.core.runtime.IProgressMonitor monitor) Creates the Multi-edit tree visitor.protected voiddispose()Dispose internal resources of the editor.Gets the translated field maps for each query of the package.org.eclipse.core.runtime.IStatusprocess(org.eclipse.core.runtime.IProgressMonitor monitor) Process the text.Methods inherited from class com.e1c.langtool.v8.dt.xtext.AbstractXtextObjectTextEditor
getProcessedText, getSourceText
-
Field Details
-
translationProvider
-
-
Constructor Details
-
QlTextEditor
protected QlTextEditor(org.eclipse.emf.ecore.EObject root, IProjectTranslationProvider translationProvider, boolean isDcs, IDependentQuerySchemaProvider dependentModelProvider)
-
-
Method Details
-
create
public static QlTextEditor create(IProjectTranslationProvider translationProvider, QuerySchema object, boolean isDcs) Low-level factory method.- Parameters:
translationProvider- the translation providerobject- the QueryShema objectisDcs- true, if it is dcs query- Returns:
- the ql text translate processor
- Throws:
IllegalArgumentException- if the query created without parent object
-
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:ITextProcessorProcess the text.- Specified by:
processin interfaceITextProcessor- Overrides:
processin classAbstractXtextObjectTextEditor- Parameters:
monitor- the monitor, cannot benull- 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:AbstractXtextObjectTextEditorCreates the Multi-edit tree visitor.- Specified by:
createTreeVisitorin classAbstractXtextObjectTextEditor- Parameters:
edit- the edit instance, cannot benullroot- the root object, cannot benullmonitor- the monitor, cannot benull- Returns:
- the multi text edit parse tree visitor
-
dispose
protected void dispose()Description copied from class:AbstractXtextObjectTextEditorDispose internal resources of the editor.- Overrides:
disposein classAbstractXtextObjectTextEditor
-