Package com._1c.g5.v8.dt.bsl.ui.autoedit
Class BslDocumentPartitioner
java.lang.Object
org.eclipse.xtext.ui.editor.model.DocumentPartitioner
com._1c.g5.v8.dt.bsl.ui.autoedit.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
ConstructorsConstructorDescriptionBslDocumentPartitioner(org.eclipse.jface.text.rules.IPartitionTokenScanner scanner, org.eclipse.xtext.ui.editor.model.ITokenTypeToPartitionTypeMapper mapper) Default base constructor -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jface.text.ITypedRegiongetPartition(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 Details
-
BslDocumentPartitioner
@Inject public BslDocumentPartitioner(org.eclipse.jface.text.rules.IPartitionTokenScanner scanner, org.eclipse.xtext.ui.editor.model.ITokenTypeToPartitionTypeMapper mapper) Default base constructor- Parameters:
scanner-IPartitionTokenScannermapper-ITokenTypeToPartitionTypeMapper
-
-
Method Details
-
getPartition
public org.eclipse.jface.text.ITypedRegion getPartition(int offset, boolean preferOpenPartitions) - Specified by:
getPartitionin interfaceorg.eclipse.jface.text.IDocumentPartitionerExtension2- Overrides:
getPartitionin classorg.eclipse.xtext.ui.editor.model.DocumentPartitioner
-