org.eclipse.xtext.ui.editor.syntaxcoloring
Class DefaultHighlightingConfiguration

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.syntaxcoloring.DefaultHighlightingConfiguration
All Implemented Interfaces:
IHighlightingConfiguration
Direct Known Subclasses:
HighlightingConfiguration, SemanticHighlightingConfiguration, SyntaxColoringConfiguration, TemplatesHighlightingConfiguration

public class DefaultHighlightingConfiguration
extends java.lang.Object
implements IHighlightingConfiguration

Author:
Jan Köhnlein - Initial contribution and API, Sebastian Zarnekow - Initial contribution and API

Field Summary
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 Summary
DefaultHighlightingConfiguration()
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEYWORD_ID

public static final java.lang.String KEYWORD_ID
See Also:
Constant Field Values

PUNCTUATION_ID

public static final java.lang.String PUNCTUATION_ID
See Also:
Constant Field Values

COMMENT_ID

public static final java.lang.String COMMENT_ID
See Also:
Constant Field Values

STRING_ID

public static final java.lang.String STRING_ID
See Also:
Constant Field Values

NUMBER_ID

public static final java.lang.String NUMBER_ID
See Also:
Constant Field Values

DEFAULT_ID

public static final java.lang.String DEFAULT_ID
See Also:
Constant Field Values

INVALID_TOKEN_ID

public static final java.lang.String INVALID_TOKEN_ID
See Also:
Constant Field Values
Constructor Detail

DefaultHighlightingConfiguration

public DefaultHighlightingConfiguration()
Method Detail

configure

public void configure(IHighlightingConfigurationAcceptor acceptor)
Description copied from interface: IHighlightingConfiguration
This method is called by the framework and allows clients to register the default styles for the semantic highlighting stage.

Specified by:
configure in interface IHighlightingConfiguration
Parameters:
acceptor - the acceptor is used to announce the various default styles. It is never null.
See Also:
IHighlightingConfigurationAcceptor.acceptDefaultHighlighting(String, String, org.eclipse.xtext.ui.editor.utils.TextStyle)

defaultTextStyle

public TextStyle defaultTextStyle()

errorTextStyle

public TextStyle errorTextStyle()

numberTextStyle

public TextStyle numberTextStyle()

stringTextStyle

public TextStyle stringTextStyle()

commentTextStyle

public TextStyle commentTextStyle()

keywordTextStyle

public TextStyle keywordTextStyle()

punctuationTextStyle

public TextStyle punctuationTextStyle()