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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String calculateId​(java.lang.String aTokenName, int aTokenType)  
      • Methods inherited from class org.eclipse.xtext.ui.editor.syntaxcoloring.AbstractAntlrTokenToAttributeIdMapper

        getId
      • Methods inherited from class org.eclipse.xtext.ui.editor.model.TokenTypeToStringMapper

        getMappedValue, initIds, setTokenDefProvider
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DSLAntlrTokenToAttributeIdMapper

        public DSLAntlrTokenToAttributeIdMapper()
    • Method Detail

      • calculateId

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