org.eclipse.xtext.xtext.ui.editor.syntaxcoloring
Class SemanticHighlightingCalculator

java.lang.Object
  extended by org.eclipse.xtext.xtext.ui.editor.syntaxcoloring.SemanticHighlightingCalculator
All Implemented Interfaces:
ISemanticHighlightingCalculator

public class SemanticHighlightingCalculator
extends java.lang.Object
implements ISemanticHighlightingCalculator

Author:
Sebastian Zarnekow - Initial contribution and API

Constructor Summary
SemanticHighlightingCalculator()
           
 
Method Summary
 INode getFirstFeatureNode(org.eclipse.emf.ecore.EObject semantic, org.eclipse.emf.ecore.EStructuralFeature feature)
           
 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

SemanticHighlightingCalculator

public SemanticHighlightingCalculator()
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.

getFirstFeatureNode

public INode getFirstFeatureNode(org.eclipse.emf.ecore.EObject semantic,
                                 org.eclipse.emf.ecore.EStructuralFeature feature)