public class HighlightingReconciler extends java.lang.Object implements org.eclipse.jface.text.ITextInputListener, IXtextModelListener, 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.
|
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(XtextEditor editor,
XtextSourceViewer sourceViewer,
HighlightingPresenter presenter)
Install this reconciler on the given editor and presenter.
|
protected boolean |
isModelInSyncWithDocument(XtextResource resource)
Deprecated.
Moved to
XtextReconcilerDebugger |
void |
modelChanged(XtextResource resource) |
void |
refresh()
Refreshes the highlighting.
|
void |
setCalculator(ISemanticHighlightingCalculator calculator) |
void |
uninstall()
Uninstall this reconciler from the editor
|
public void addPosition(int offset, int length, java.lang.String... ids)
addPosition
in interface IHighlightedPositionAcceptor
offset
- The range offsetlength
- The range lengthids
- The highlighting attribute idspublic void install(XtextEditor editor, XtextSourceViewer sourceViewer, HighlightingPresenter presenter)
editor
- the editorsourceViewer
- 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(XtextResource resource)
modelChanged
in interface IXtextModelListener
@Deprecated protected boolean isModelInSyncWithDocument(XtextResource resource)
XtextReconcilerDebugger
public void setCalculator(ISemanticHighlightingCalculator calculator)
public ISemanticHighlightingCalculator getCalculator()