public class HighlightingReconciler extends Object implements org.eclipse.jface.text.ITextInputListener, IXtextModelListener, IXtextModelListenerExtension, IHighlightedPositionAcceptor
IHighlightedPositionAcceptor.DeprecationHelper| 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.
|
protected void |
beforeRefresh(XtextResource resource,
CancelIndicator cancelIndicator) |
protected void |
checkCanceled(CancelIndicator cancelIndicator) |
ISemanticHighlightingCalculator |
getCalculator()
Deprecated.
|
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.
|
void |
modelChanged(XtextResource resource) |
void |
modelChanged(XtextResource resource,
CancelIndicator cancelIndicator)
Called when the resource model of an XtextDocument has changed.
|
void |
refresh()
Refreshes the highlighting.
|
void |
setCalculator(ISemanticHighlightingCalculator calculator)
Deprecated.
|
void |
uninstall()
Uninstall this reconciler from the editor
|
public void addPosition(int offset,
int length,
String... ids)
addPosition in interface IHighlightedPositionAcceptoroffset - 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.ITextInputListenerpublic void inputDocumentChanged(org.eclipse.jface.text.IDocument oldInput,
org.eclipse.jface.text.IDocument newInput)
inputDocumentChanged in interface org.eclipse.jface.text.ITextInputListenerpublic void refresh()
protected void beforeRefresh(XtextResource resource, CancelIndicator cancelIndicator)
public void modelChanged(XtextResource resource)
modelChanged in interface IXtextModelListenerpublic void modelChanged(XtextResource resource, CancelIndicator cancelIndicator)
IXtextModelListenerExtensionmodelChanged in interface IXtextModelListenerExtensionresource - the modelcancelIndicator - an indicator that should be asked in order to cancel an operation early in case there are new pending changes.protected void checkCanceled(CancelIndicator cancelIndicator)
@Deprecated public void setCalculator(ISemanticHighlightingCalculator calculator)
@Deprecated public ISemanticHighlightingCalculator getCalculator()
Copyright © 2016. All Rights Reserved.