Class BslDocumentPartitioner

  • All Implemented Interfaces:
    org.eclipse.jface.text.IDocumentPartitioner, org.eclipse.jface.text.IDocumentPartitionerExtension, org.eclipse.jface.text.IDocumentPartitionerExtension2, org.eclipse.jface.text.IDocumentPartitionerExtension3

    public class BslDocumentPartitioner
    extends org.eclipse.xtext.ui.editor.model.DocumentPartitioner
    Custom DocumentPartitioner for edit strategy in string literals
    • Field Summary

      • Fields inherited from class org.eclipse.xtext.ui.editor.model.DocumentPartitioner

        CHECK_CACHE_CONSISTENCY, CONTENT_TYPES_CATEGORY, fActiveRewriteSession, fCachedPositions, fDeleteOffset, fDocument, fEndOffset, fIsInitialized, fLegalContentTypes, fPositionCategory, fPositionUpdater, fScanner, fStartOffset
    • Constructor Summary

      Constructors 
      Constructor Description
      BslDocumentPartitioner​(org.eclipse.jface.text.rules.IPartitionTokenScanner scanner, org.eclipse.xtext.ui.editor.model.ITokenTypeToPartitionTypeMapper mapper)
      Default base constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.jface.text.ITypedRegion getPartition​(int offset, boolean preferOpenPartitions)  
      • Methods inherited from class org.eclipse.xtext.ui.editor.model.DocumentPartitioner

        checkInitialization, clearPositionCache, computePartitioning, computePartitioning, connect, connect, disconnect, documentAboutToBeChanged, documentChanged, documentChanged2, findClosestPosition, flushRewriteSession, getActiveRewriteSession, getContentType, getContentType, getLegalContentTypes, getManagingPositionCategories, getPartition, getPositions, getTokenContentType, initialize, isSupportedContentType, startRewriteSession, stopRewriteSession
    • Constructor Detail

      • BslDocumentPartitioner

        @Inject
        public BslDocumentPartitioner​(org.eclipse.jface.text.rules.IPartitionTokenScanner scanner,
                                      org.eclipse.xtext.ui.editor.model.ITokenTypeToPartitionTypeMapper mapper)
        Default base constructor
        Parameters:
        scanner - IPartitionTokenScanner
        mapper - ITokenTypeToPartitionTypeMapper
    • Method Detail

      • getPartition

        public org.eclipse.jface.text.ITypedRegion getPartition​(int offset,
                                                                boolean preferOpenPartitions)
        Specified by:
        getPartition in interface org.eclipse.jface.text.IDocumentPartitionerExtension2
        Overrides:
        getPartition in class org.eclipse.xtext.ui.editor.model.DocumentPartitioner