Package com.e1c.langtool.v8.dt.xtext
Interface ITextProcessor
- All Known Implementing Classes:
AbstractXtextObjectTextEditor,ModuleTextEditor,QlTextEditor,RightQlTextEditor,TemplateTextEditor
public interface ITextProcessor
Common interface for processors of text, that can modify source text and provide processed text.
-
Method Summary
Modifier and TypeMethodDescriptionGets the processed text that can be modified or same as source text.Gets the source text that didn't modified.org.eclipse.core.runtime.IStatusprocess(org.eclipse.core.runtime.IProgressMonitor monitor) Process the text.
-
Method Details
-
getSourceText
String getSourceText()Gets the source text that didn't modified.- Returns:
- the source text, cannot return
null.
-
getProcessedText
String getProcessedText()Gets the processed text that can be modified or same as source text.- Returns:
- the processed text or the source text, cannot return
null.
-
process
org.eclipse.core.runtime.IStatus process(org.eclipse.core.runtime.IProgressMonitor monitor) Process the text.- Parameters:
monitor- the monitor, cannot benull- Returns:
- the status of processing, cannot return
null
-