org.eclipse.xtext.xtend2.ui.highlighting
Class RichStringAwareHighlightingCalculator
java.lang.Object
org.eclipse.xtext.xbase.ui.highlighting.XbaseHighlightingCalculator
org.eclipse.xtext.xtend2.ui.highlighting.RichStringAwareHighlightingCalculator
- All Implemented Interfaces:
- ISemanticHighlightingCalculator
public class RichStringAwareHighlightingCalculator
- extends XbaseHighlightingCalculator
- Author:
- Sebastian Zarnekow - Initial contribution and API
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RichStringAwareHighlightingCalculator
public RichStringAwareHighlightingCalculator()
setXtendGrammarAccess
@Inject
protected void setXtendGrammarAccess(Xtend2GrammarAccess grammarAccess)
doProvideHighlightingFor
protected void doProvideHighlightingFor(XtextResource resource,
IHighlightedPositionAcceptor acceptor)
- Description copied from class:
XbaseHighlightingCalculator
Actual implementation of the semantic highlighting calculation. It is ensured, that the given
resource is not null
and refers to an initialized parse result.
Clients should override this method in order to perform custom highlighting.
- Overrides:
doProvideHighlightingFor
in class XbaseHighlightingCalculator
- Parameters:
resource
- a valid to-be-processed resource. Is never null
.acceptor
- the acceptor. Is never null
.
highlightRichStrings
protected void highlightRichStrings(XExpression expression,
IHighlightedPositionAcceptor acceptor)
createRichStringHighlighter
protected RichStringAwareHighlightingCalculator.RichStringHighlighter createRichStringHighlighter(IHighlightedPositionAcceptor acceptor)
highlightSpecialIdentifiers
protected void highlightSpecialIdentifiers(ILeafNode leafNode,
IHighlightedPositionAcceptor acceptor,
TerminalRule idRule)
- Overrides:
highlightSpecialIdentifiers
in class XbaseHighlightingCalculator