public class DefaultHighlightingConfiguration extends java.lang.Object implements IHighlightingConfiguration
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMMENT_ID |
static java.lang.String |
DEFAULT_ID |
static java.lang.String |
INVALID_TOKEN_ID |
static java.lang.String |
KEYWORD_ID |
static java.lang.String |
NUMBER_ID |
static java.lang.String |
PUNCTUATION_ID |
static java.lang.String |
STRING_ID |
Constructor and Description |
---|
DefaultHighlightingConfiguration() |
Modifier and Type | Method and Description |
---|---|
TextStyle |
commentTextStyle() |
void |
configure(IHighlightingConfigurationAcceptor acceptor)
This method is called by the framework and allows clients to register the default styles for
the semantic highlighting stage.
|
TextStyle |
defaultTextStyle() |
TextStyle |
errorTextStyle() |
TextStyle |
keywordTextStyle() |
TextStyle |
numberTextStyle() |
TextStyle |
punctuationTextStyle() |
TextStyle |
stringTextStyle() |
public static final java.lang.String KEYWORD_ID
public static final java.lang.String PUNCTUATION_ID
public static final java.lang.String COMMENT_ID
public static final java.lang.String STRING_ID
public static final java.lang.String NUMBER_ID
public static final java.lang.String DEFAULT_ID
public static final java.lang.String INVALID_TOKEN_ID
public void configure(IHighlightingConfigurationAcceptor acceptor)
IHighlightingConfiguration
configure
in interface IHighlightingConfiguration
acceptor
- the acceptor is used to announce the various default styles. It is never null
.IHighlightingConfigurationAcceptor.acceptDefaultHighlighting(String, String, org.eclipse.xtext.ui.editor.utils.TextStyle)
public TextStyle defaultTextStyle()
public TextStyle errorTextStyle()
public TextStyle numberTextStyle()
public TextStyle stringTextStyle()
public TextStyle commentTextStyle()
public TextStyle keywordTextStyle()
public TextStyle punctuationTextStyle()