public class HighlightingReconciler extends Object
Constructor and Description |
---|
HighlightingReconciler() |
Modifier and Type | Method and Description |
---|---|
void |
addPosition(int offset,
int length,
String... ids)
Add a position with the given range and highlighting if it does not exist already.
|
ISemanticHighlightingCalculator |
getCalculator() |
void |
inputDocumentAboutToBeChanged(IDocument oldInput,
IDocument newInput) |
void |
inputDocumentChanged(IDocument oldInput,
IDocument newInput) |
void |
install(XtextSourceViewer sourceViewer,
HighlightingPresenter presenter)
Install this reconciler on the given editor and presenter.
|
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, String... ids)
offset
- The range offsetlength
- The range lengthpublic void install(XtextSourceViewer sourceViewer, HighlightingPresenter presenter)
sourceViewer
- the source viewerpresenter
- the highlighting presenterpublic void uninstall()
public void inputDocumentAboutToBeChanged(IDocument oldInput, IDocument newInput)
public void inputDocumentChanged(IDocument oldInput, IDocument newInput)
public void refresh()
public void modelChanged(XtextResource resource)
public void setCalculator(ISemanticHighlightingCalculator calculator)
public ISemanticHighlightingCalculator getCalculator()
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.