org.eclipse.xtext.xtend2.ui.autoedit
Class TokenTypeToPartitionMapper

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.model.TokenTypeToStringMapper
      extended by org.eclipse.xtext.ui.editor.model.TerminalsTokenTypeToPartitionMapper
          extended by org.eclipse.xtext.xtend2.ui.autoedit.TokenTypeToPartitionMapper
All Implemented Interfaces:
ITokenTypeToPartitionTypeMapper

public class TokenTypeToPartitionMapper
extends TerminalsTokenTypeToPartitionMapper

Author:
Sebastian Zarnekow - Initial contribution and API

Field Summary
static java.lang.String RICH_STRING_LITERAL_PARTITION
           
static java.lang.String[] SUPPORTED_TOKEN_TYPES
           
 
Fields inherited from class org.eclipse.xtext.ui.editor.model.TerminalsTokenTypeToPartitionMapper
COMMENT_PARTITION, SL_COMMENT_PARTITION, STRING_LITERAL_PARTITION, SUPPORTED_PARTITIONS
 
Constructor Summary
TokenTypeToPartitionMapper()
           
 
Method Summary
protected  java.lang.String calculateId(java.lang.String tokenName, int tokenType)
           
 java.lang.String[] getSupportedPartitionTypes()
          returns all supported partition types
 
Methods inherited from class org.eclipse.xtext.ui.editor.model.TerminalsTokenTypeToPartitionMapper
getPartitionType
 
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
 

Field Detail

RICH_STRING_LITERAL_PARTITION

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

SUPPORTED_TOKEN_TYPES

public static final java.lang.String[] SUPPORTED_TOKEN_TYPES
Constructor Detail

TokenTypeToPartitionMapper

public TokenTypeToPartitionMapper()
Method Detail

calculateId

protected java.lang.String calculateId(java.lang.String tokenName,
                                       int tokenType)
Overrides:
calculateId in class TerminalsTokenTypeToPartitionMapper

getSupportedPartitionTypes

public java.lang.String[] getSupportedPartitionTypes()
Description copied from interface: ITokenTypeToPartitionTypeMapper
returns all supported partition types

Specified by:
getSupportedPartitionTypes in interface ITokenTypeToPartitionTypeMapper
Overrides:
getSupportedPartitionTypes in class TerminalsTokenTypeToPartitionMapper