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

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.syntaxcoloring.PreferenceStoreAccessor

public class PreferenceStoreAccessor
extends java.lang.Object

Author:
Dennis Hübner - Initial contribution and API

Constructor Summary
PreferenceStoreAccessor(java.lang.String languageName, IPreferenceStoreAccess scopedAccessor)
           
 
Method Summary
static java.lang.String getTokenBackgroundColorPreferenceKey(java.lang.String tokenType)
           
static java.lang.String getTokenColorPreferenceKey(java.lang.String tokenType)
           
static java.lang.String getTokenFontPreferenceKey(java.lang.String tokenType)
           
static java.lang.String getTokenStylePreferenceKey(java.lang.String tokenType)
           
 void populateTextStyle(java.lang.String id, TextStyle style, TextStyle defaults)
           
static java.lang.String syntaxColorerTag(java.lang.String languageName)
           
static java.lang.String tokenTypeTag(java.lang.String languageName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreferenceStoreAccessor

@Inject
public PreferenceStoreAccessor(java.lang.String languageName,
                                      IPreferenceStoreAccess scopedAccessor)
Method Detail

populateTextStyle

public void populateTextStyle(java.lang.String id,
                              TextStyle style,
                              TextStyle defaults)

getTokenColorPreferenceKey

public static java.lang.String getTokenColorPreferenceKey(java.lang.String tokenType)

getTokenBackgroundColorPreferenceKey

public static java.lang.String getTokenBackgroundColorPreferenceKey(java.lang.String tokenType)

getTokenFontPreferenceKey

public static java.lang.String getTokenFontPreferenceKey(java.lang.String tokenType)

getTokenStylePreferenceKey

public static java.lang.String getTokenStylePreferenceKey(java.lang.String tokenType)

syntaxColorerTag

public static java.lang.String syntaxColorerTag(java.lang.String languageName)

tokenTypeTag

public static java.lang.String tokenTypeTag(java.lang.String languageName)