|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.ui.codetemplates.ui.highlighting.SemanticHighlighter
public class SemanticHighlighter
Constructor Summary | |
---|---|
SemanticHighlighter()
|
Method Summary | |
---|---|
protected TemplateBodyHighlighter |
getHighlighter(Grammar grammar)
|
protected void |
highlightNode(INode node,
java.lang.String id,
IHighlightedPositionAcceptor acceptor)
Highlights the non-hidden parts of node with the style that is associated with id . |
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 |
---|
public SemanticHighlighter()
Method Detail |
---|
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
.protected TemplateBodyHighlighter getHighlighter(Grammar grammar)
protected void highlightNode(INode node, java.lang.String id, IHighlightedPositionAcceptor acceptor)
node
with the style that is associated with id
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |