org.eclipse.xtext.xtend2.ui.highlighting
Class RichStringAwareHighlightingCalculator

java.lang.Object
  extended by org.eclipse.xtext.xbase.ui.highlighting.XbaseHighlightingCalculator
      extended by org.eclipse.xtext.xtend2.ui.highlighting.RichStringAwareHighlightingCalculator
All Implemented Interfaces:
ISemanticHighlightingCalculator

public class RichStringAwareHighlightingCalculator
extends XbaseHighlightingCalculator

Author:
Sebastian Zarnekow - Initial contribution and API

Nested Class Summary
protected  class RichStringAwareHighlightingCalculator.RichStringHighlighter
           
 
Constructor Summary
RichStringAwareHighlightingCalculator()
           
 
Method Summary
protected  RichStringAwareHighlightingCalculator.RichStringHighlighter createRichStringHighlighter(IHighlightedPositionAcceptor acceptor)
           
protected  void doProvideHighlightingFor(XtextResource resource, IHighlightedPositionAcceptor acceptor)
          Actual implementation of the semantic highlighting calculation.
protected  void highlightRichStrings(XExpression expression, IHighlightedPositionAcceptor acceptor)
           
protected  void highlightSpecialIdentifiers(ILeafNode leafNode, IHighlightedPositionAcceptor acceptor, TerminalRule idRule)
           
protected  void setXtendGrammarAccess(Xtend2GrammarAccess grammarAccess)
           
 
Methods inherited from class org.eclipse.xtext.xbase.ui.highlighting.XbaseHighlightingCalculator
highlightNode, highlightSpecialIdentifiers, initializeHighlightedIdentifiers, provideHighlightingFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RichStringAwareHighlightingCalculator

public RichStringAwareHighlightingCalculator()
Method Detail

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