org.eclipse.xtext.ui.editor.syntaxcoloring
Interface IHighlightedPositionAcceptor
- All Known Implementing Classes:
- HighlightingReconciler, MergingHighlightedPositionAcceptor
public interface IHighlightedPositionAcceptor
Xtext uses an IHighlightedPositionAcceptor
to collect any ranges that should
be highlighted based on semantic information of your model. It is passed to a
ISemanticHighlightingCalculator
.
This interface is not intended to be implemented by clients.
- Author:
- Sebastian Zarnekow - Initial contribution and API
Method Summary |
void |
addPosition(int offset,
int length,
java.lang.String... id)
Associates a text range with a style. |
addPosition
void addPosition(int offset,
int length,
java.lang.String... id)
- Associates a text range with a style.
- Parameters:
offset
- the offset of the range.length
- the length of the range.id
- the ids of the highlighting style, that should be applied.