org.eclipse.xtext.ui.codetemplates.ui.highlighting
Class SemanticHighlighter

java.lang.Object
  extended by org.eclipse.xtext.ui.codetemplates.ui.highlighting.SemanticHighlighter
All Implemented Interfaces:
ISemanticHighlightingCalculator

public class SemanticHighlighter
extends java.lang.Object
implements ISemanticHighlightingCalculator

Author:
Sebastian Zarnekow - Initial contribution and API

Constructor Summary
SemanticHighlighter()
           
 
Method Summary
protected  TemplateBodyHighlighter getHighlighter(Grammar grammar)
           
 void provideHighlightingFor(XtextResource resource, IHighlightedPositionAcceptor acceptor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SemanticHighlighter

public SemanticHighlighter()
Method Detail

provideHighlightingFor

public void provideHighlightingFor(XtextResource resource,
                                   IHighlightedPositionAcceptor acceptor)
Specified by:
provideHighlightingFor in interface ISemanticHighlightingCalculator
Parameters:
resource - the resource that will be highlighted. May be null in some rare cases.
acceptor - used to announce the mapping from text-range to the style's id. The acceptor will never be null.

getHighlighter

protected TemplateBodyHighlighter getHighlighter(Grammar grammar)