org.eclipse.ocl.examples.xtext.essentialocl.ui.model
Class BaseTerminalsTokenTypeToPartitionMapper

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.ocl.examples.xtext.essentialocl.ui.model.BaseTerminalsTokenTypeToPartitionMapper
All Implemented Interfaces:
org.eclipse.xtext.ui.editor.model.ITokenTypeToPartitionTypeMapper, org.eclipse.xtext.ui.editor.model.ITokenTypeToPartitionTypeMapperExtension

public class BaseTerminalsTokenTypeToPartitionMapper
extends org.eclipse.xtext.ui.editor.model.TerminalsTokenTypeToPartitionMapper


Field Summary
protected static java.lang.String[] BASE_SUPPORTED_PARTITIONS
           
static java.lang.String ESCAPED_ID_PARTITION
           
static java.lang.String ML_STRING_LITERAL_PARTITION
           
static java.lang.String STRING_LITERAL_PARTITION1
           
static java.lang.String STRING_LITERAL_PARTITION2
           
 
Fields inherited from class org.eclipse.xtext.ui.editor.model.TerminalsTokenTypeToPartitionMapper
COMMENT_PARTITION, SL_COMMENT_PARTITION, STRING_LITERAL_PARTITION, SUPPORTED_PARTITIONS
 
Constructor Summary
BaseTerminalsTokenTypeToPartitionMapper()
           
 
Method Summary
protected  java.lang.String calculateId(java.lang.String tokenName, int tokenType)
           
 java.lang.String[] getSupportedPartitionTypes()
           
 
Methods inherited from class org.eclipse.xtext.ui.editor.model.TerminalsTokenTypeToPartitionMapper
getPartitionType, isMultiLineComment, isSingleLineComment
 
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

STRING_LITERAL_PARTITION1

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

STRING_LITERAL_PARTITION2

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

ML_STRING_LITERAL_PARTITION

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

ESCAPED_ID_PARTITION

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

BASE_SUPPORTED_PARTITIONS

protected static final java.lang.String[] BASE_SUPPORTED_PARTITIONS
Constructor Detail

BaseTerminalsTokenTypeToPartitionMapper

public BaseTerminalsTokenTypeToPartitionMapper()
Method Detail

calculateId

protected java.lang.String calculateId(java.lang.String tokenName,
                                       int tokenType)
Overrides:
calculateId in class org.eclipse.xtext.ui.editor.model.TerminalsTokenTypeToPartitionMapper

getSupportedPartitionTypes

public java.lang.String[] getSupportedPartitionTypes()
Specified by:
getSupportedPartitionTypes in interface org.eclipse.xtext.ui.editor.model.ITokenTypeToPartitionTypeMapper
Overrides:
getSupportedPartitionTypes in class org.eclipse.xtext.ui.editor.model.TerminalsTokenTypeToPartitionMapper