org.eclipse.xtend.ide.highlighting
Class XtendHighlightingCalculator
java.lang.Object
org.eclipse.xtext.xbase.ui.highlighting.XbaseHighlightingCalculator
org.eclipse.xtend.ide.highlighting.XtendHighlightingCalculator
- All Implemented Interfaces:
- ISemanticHighlightingCalculator
public class XtendHighlightingCalculator
- extends XbaseHighlightingCalculator
- Author:
- Sebastian Zarnekow - Initial contribution and API, Holger Schill
Method Summary |
protected XtendHighlightingCalculator.RichStringHighlighter |
createRichStringHighlighter(IHighlightedPositionAcceptor acceptor)
|
protected void |
doProvideHighlightingFor(XtextResource resource,
IHighlightedPositionAcceptor acceptor)
Actual implementation of the semantic highlighting calculation. |
protected void |
highlightDeprectedXtendAnnotationTarget(IHighlightedPositionAcceptor acceptor,
XtendAnnotationTarget target)
|
protected void |
highlightReferenceJvmType(IHighlightedPositionAcceptor acceptor,
org.eclipse.emf.ecore.EObject referencer,
org.eclipse.emf.ecore.EReference reference,
org.eclipse.emf.ecore.EObject resolvedReferencedObject)
|
protected void |
highlightRichStrings(XExpression expression,
IHighlightedPositionAcceptor acceptor)
|
protected void |
highlightRichStringsInAnnotations(IHighlightedPositionAcceptor acceptor,
XtendAnnotationTarget target)
|
protected void |
highlightSpecialIdentifiers(ILeafNode leafNode,
IHighlightedPositionAcceptor acceptor,
TerminalRule idRule)
|
protected void |
highlightXtendField(XtendField field,
IHighlightedPositionAcceptor acceptor)
|
protected void |
setXtendGrammarAccess(XtendGrammarAccess grammarAccess)
|
Methods inherited from class org.eclipse.xtext.xbase.ui.highlighting.XbaseHighlightingCalculator |
computeFeatureCallHighlighting, computeReferencedJvmTypeHighlighting, highlightAnnotation, highlightFeatureCall, highlightNode, highlightNumberLiterals, highlightObjectAtFeature, highlightSpecialIdentifiers, initializeHighlightedIdentifiers, provideHighlightingFor, searchAndHighlightElements |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XtendHighlightingCalculator
public XtendHighlightingCalculator()
setXtendGrammarAccess
@Inject
protected void setXtendGrammarAccess(XtendGrammarAccess 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
.
highlightRichStringsInAnnotations
protected void highlightRichStringsInAnnotations(IHighlightedPositionAcceptor acceptor,
XtendAnnotationTarget target)
highlightReferenceJvmType
protected void highlightReferenceJvmType(IHighlightedPositionAcceptor acceptor,
org.eclipse.emf.ecore.EObject referencer,
org.eclipse.emf.ecore.EReference reference,
org.eclipse.emf.ecore.EObject resolvedReferencedObject)
- Overrides:
highlightReferenceJvmType
in class XbaseHighlightingCalculator
highlightDeprectedXtendAnnotationTarget
protected void highlightDeprectedXtendAnnotationTarget(IHighlightedPositionAcceptor acceptor,
XtendAnnotationTarget target)
highlightRichStrings
protected void highlightRichStrings(XExpression expression,
IHighlightedPositionAcceptor acceptor)
createRichStringHighlighter
protected XtendHighlightingCalculator.RichStringHighlighter createRichStringHighlighter(IHighlightedPositionAcceptor acceptor)
highlightSpecialIdentifiers
protected void highlightSpecialIdentifiers(ILeafNode leafNode,
IHighlightedPositionAcceptor acceptor,
TerminalRule idRule)
- Overrides:
highlightSpecialIdentifiers
in class XbaseHighlightingCalculator
highlightXtendField
protected void highlightXtendField(XtendField field,
IHighlightedPositionAcceptor acceptor)