Class DSLAntlrTokenToAttributeIdMapper


  • public class DSLAntlrTokenToAttributeIdMapper
    extends org.eclipse.xtext.ui.editor.syntaxcoloring.DefaultAntlrTokenToAttributeIdMapper
    Extension of the custom Antlr token to attribute mapper. This is used by the editor to connect specific token types to a highlighting setting.
    Author:
    Rene Schneider - initial API and implementation
    • Constructor Detail

      • DSLAntlrTokenToAttributeIdMapper

        public DSLAntlrTokenToAttributeIdMapper()
    • Method Detail

      • calculateId

        protected String calculateId​(String aTokenName,
                                     int aTokenType)
        Overrides:
        calculateId in class org.eclipse.xtext.ui.editor.syntaxcoloring.DefaultAntlrTokenToAttributeIdMapper