Interface ISemanticHighlightingCalculator
-
- All Known Implementing Classes:
DefaultSemanticHighlightingCalculator,MergingHighlightedPositionAcceptor
public interface ISemanticHighlightingCalculatorClients should implement anISemanticHighlightingCalculatorto compute the mapping from ranges in the input to the appropriate highlighting style.- Since:
- 2.9
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidprovideHighlightingFor(org.eclipse.xtext.resource.XtextResource resource, IHighlightedPositionAcceptor acceptor, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
-
-
-
Method Detail
-
provideHighlightingFor
void provideHighlightingFor(org.eclipse.xtext.resource.XtextResource resource, IHighlightedPositionAcceptor acceptor, org.eclipse.xtext.util.CancelIndicator cancelIndicator)- Parameters:
resource- the resource that will be highlighted. May benullin some rare cases.acceptor- used to announce the mapping from text-range to the style's id. The acceptor will never benull.cancelIndicator- used to determine whether we should stop searching for highlighting positions (useOperationCanceledManagerto check)
-
-