Class ModuleTextEditor
java.lang.Object
com.e1c.langtool.v8.dt.xtext.AbstractXtextObjectTextEditor
com.e1c.langtool.v8.dt.bsl.translator.ModuleTextEditor
- All Implemented Interfaces:
ITextProcessor
-
Constructor Summary
ConstructorsConstructorDescriptionModuleTextEditor(Module module, IProjectTranslationProvider translationProvider, BmOperationContext typeComputationContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.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
-
Constructor Details
-
ModuleTextEditor
public ModuleTextEditor(Module module, IProjectTranslationProvider translationProvider, BmOperationContext typeComputationContext)
-
-
Method Details
-
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
-
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
-
dispose
protected void dispose()Description copied from class:AbstractXtextObjectTextEditorDispose internal resources of the editor.- Overrides:
disposein classAbstractXtextObjectTextEditor
-