Class BslTokenTypeToPartitionMapper

java.lang.Object
org.eclipse.xtext.ui.editor.model.TokenTypeToStringMapper
org.eclipse.xtext.ui.editor.model.TerminalsTokenTypeToPartitionMapper
com._1c.g5.v8.dt.bsl.ui.autoedit.BslTokenTypeToPartitionMapper
All Implemented Interfaces:
org.eclipse.xtext.ui.editor.model.ITokenTypeToPartitionTypeMapper, org.eclipse.xtext.ui.editor.model.ITokenTypeToPartitionTypeMapperExtension

public class BslTokenTypeToPartitionMapper extends org.eclipse.xtext.ui.editor.model.TerminalsTokenTypeToPartitionMapper
Special TerminalsTokenTypeToPartitionMapper for BSL
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String[]
     

    Fields inherited from class org.eclipse.xtext.ui.editor.model.TerminalsTokenTypeToPartitionMapper

    COMMENT_PARTITION, SL_COMMENT_PARTITION, STRING_LITERAL_PARTITION, SUPPORTED_PARTITIONS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    calculateId(String tokenName, int tokenType)
     
     

    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 Details

    • BSL_SUPPORTED_PARTITIONS

      public static final String[] BSL_SUPPORTED_PARTITIONS
  • Constructor Details

    • BslTokenTypeToPartitionMapper

      public BslTokenTypeToPartitionMapper()
  • Method Details

    • calculateId

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

      public 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