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
CustomDocumentPartitioner
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 interfaceorg.eclipse.jface.text.IDocumentPartitionerExtension2
- Overrides:
getPartition
in classorg.eclipse.xtext.ui.editor.model.DocumentPartitioner
-
-