public class SemanticHighlightingCalculator extends java.lang.Object implements ISemanticHighlightingCalculator
Modifier and Type | Field and Description |
---|---|
static java.util.Set<java.lang.String> |
SPECIAL_ATTRIBUTES |
Constructor and Description |
---|
SemanticHighlightingCalculator() |
Modifier and Type | Method and Description |
---|---|
INode |
getFirstFeatureNode(org.eclipse.emf.ecore.EObject semantic,
org.eclipse.emf.ecore.EStructuralFeature feature) |
void |
provideHighlightingFor(XtextResource resource,
IHighlightedPositionAcceptor acceptor) |
public static final java.util.Set<java.lang.String> SPECIAL_ATTRIBUTES
public void provideHighlightingFor(XtextResource resource, IHighlightedPositionAcceptor acceptor)
provideHighlightingFor
in interface ISemanticHighlightingCalculator
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
.public INode getFirstFeatureNode(org.eclipse.emf.ecore.EObject semantic, org.eclipse.emf.ecore.EStructuralFeature feature)