public class HighlightingReconciler
extends java.lang.Object
implements org.eclipse.jface.text.ITextInputListener, org.eclipse.xtext.ui.editor.model.IXtextModelListener, org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightedPositionAcceptor
Constructor and Description |
---|
HighlightingReconciler() |
Modifier and Type | Method and Description |
---|---|
void |
addPosition(int offset,
int length,
java.lang.String... ids)
Add a position with the given range and highlighting if it does not exist already.
|
org.eclipse.xtext.ui.editor.syntaxcoloring.ISemanticHighlightingCalculator |
getCalculator() |
void |
inputDocumentAboutToBeChanged(org.eclipse.jface.text.IDocument oldInput,
org.eclipse.jface.text.IDocument newInput) |
void |
inputDocumentChanged(org.eclipse.jface.text.IDocument oldInput,
org.eclipse.jface.text.IDocument newInput) |
void |
install(org.eclipse.xtext.ui.editor.XtextSourceViewer sourceViewer,
org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingPresenter presenter)
Install this reconciler on the given editor and presenter.
|
void |
modelChanged(org.eclipse.xtext.resource.XtextResource resource) |
void |
refresh()
Refreshes the highlighting.
|
void |
setCalculator(org.eclipse.xtext.ui.editor.syntaxcoloring.ISemanticHighlightingCalculator calculator) |
void |
uninstall()
Uninstall this reconciler from the editor
|
public void addPosition(int offset, int length, java.lang.String... ids)
addPosition
in interface org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightedPositionAcceptor
offset
- The range offsetlength
- The range lengthpublic void install(org.eclipse.xtext.ui.editor.XtextSourceViewer sourceViewer, org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingPresenter presenter)
sourceViewer
- the source viewerpresenter
- the highlighting presenterpublic void uninstall()
public void inputDocumentAboutToBeChanged(org.eclipse.jface.text.IDocument oldInput, org.eclipse.jface.text.IDocument newInput)
inputDocumentAboutToBeChanged
in interface org.eclipse.jface.text.ITextInputListener
public void inputDocumentChanged(org.eclipse.jface.text.IDocument oldInput, org.eclipse.jface.text.IDocument newInput)
inputDocumentChanged
in interface org.eclipse.jface.text.ITextInputListener
public void refresh()
public void modelChanged(org.eclipse.xtext.resource.XtextResource resource)
modelChanged
in interface org.eclipse.xtext.ui.editor.model.IXtextModelListener
public void setCalculator(org.eclipse.xtext.ui.editor.syntaxcoloring.ISemanticHighlightingCalculator calculator)
public org.eclipse.xtext.ui.editor.syntaxcoloring.ISemanticHighlightingCalculator getCalculator()