public class VilHighlightingCalculator
extends java.lang.Object
implements org.eclipse.xtext.ui.editor.syntaxcoloring.ISemanticHighlightingCalculator
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
COMPLEX_HIGHLIGHT_REGEX
The regex which identifies the string to be highlighted (within a common string).
|
private static java.lang.String |
SIMPLE_HIGHLIGHT_REGEX
The regex which identifies the string to be highlighted (single string).
|
| Constructor and Description |
|---|
VilHighlightingCalculator() |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
hasRootNode(org.eclipse.xtext.resource.XtextResource resource)
Check whether the given resource is not
null and provides root-node. |
void |
provideHighlightingFor(org.eclipse.xtext.resource.XtextResource resource,
org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightedPositionAcceptor acceptor) |
private void |
provideStringPatternHighlight(org.eclipse.xtext.nodemodel.INode rootNode,
org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightedPositionAcceptor acceptor)
Provide the highlighting of the referred variables.
|
private static final java.lang.String COMPLEX_HIGHLIGHT_REGEX
private static final java.lang.String SIMPLE_HIGHLIGHT_REGEX
public void provideHighlightingFor(org.eclipse.xtext.resource.XtextResource resource,
org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightedPositionAcceptor acceptor)
provideHighlightingFor in interface org.eclipse.xtext.ui.editor.syntaxcoloring.ISemanticHighlightingCalculatorprivate void provideStringPatternHighlight(org.eclipse.xtext.nodemodel.INode rootNode,
org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightedPositionAcceptor acceptor)
rootNode - the root node of the parse tree which holds the text of the entire VIL-file.acceptor - the acceptor for adding the positions that should be highlighted individually.private boolean hasRootNode(org.eclipse.xtext.resource.XtextResource resource)
null and provides root-node.resource - the resource (the actual document in the editor) to be checked.Copyright © 2009 - 2018 SSE. All Rights Reserved.