public class SemanticHighlightingCalculator extends DefaultSemanticHighlightingCalculator
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 |
---|---|
protected void |
doProvideHighlightingFor(XtextResource resource,
IHighlightedPositionAcceptor acceptor)
Actual implementation of the semantic highlighting calculation.
|
INode |
getFirstFeatureNode(org.eclipse.emf.ecore.EObject semantic,
org.eclipse.emf.ecore.EStructuralFeature feature) |
highlightElement, highlightElementRecursively, highlightFeature, highlightNode, highlightTasks, provideHighlightingFor, searchAndHighlightElements
public static final java.util.Set<java.lang.String> SPECIAL_ATTRIBUTES
protected void doProvideHighlightingFor(XtextResource resource, IHighlightedPositionAcceptor acceptor)
DefaultSemanticHighlightingCalculator
Actual implementation of the semantic highlighting calculation. It is ensured, that the given resource is not
null
and refers to an initialized parse result.
By default this will visit the elements in the resource recursively and call
DefaultSemanticHighlightingCalculator.highlightElement(EObject, IHighlightedPositionAcceptor)
for each of them. As the last step, tasks will
be highlighted.
Clients can override this method if the default recursive approach does not fit their use case
doProvideHighlightingFor
in class DefaultSemanticHighlightingCalculator
resource
- a valid to-be-processed resource. Is never null
.acceptor
- the acceptor. Is never null
.public INode getFirstFeatureNode(org.eclipse.emf.ecore.EObject semantic, org.eclipse.emf.ecore.EStructuralFeature feature)