public interface IDocumentPartitionerExtension3
IDocumentPartitioner
. Adds the
concept of rewrite sessions. A rewrite session is a sequence of replace
operations that form a semantic unit.Modifier and Type | Method and Description |
---|---|
void |
connect(IDocument document,
boolean delayInitialization)
Connects this partitioner to a document.
|
DocumentRewriteSession |
getActiveRewriteSession()
Returns the active rewrite session of this document or
null . |
void |
startRewriteSession(DocumentRewriteSession session)
Tells the document partitioner that a rewrite session started.
|
void |
stopRewriteSession(DocumentRewriteSession session)
Tells the document partitioner that the rewrite session has finished.
|
void startRewriteSession(DocumentRewriteSession session) throws IllegalStateException
session
- the rewrite sessionIllegalStateException
- in case there is already an active rewrite sessionvoid stopRewriteSession(DocumentRewriteSession session)
startRewriteSession
has
been called before.session
- the rewrite sessionDocumentRewriteSession getActiveRewriteSession()
null
.null
void connect(IDocument document, boolean delayInitialization)
The caller of this method must ensure that this partitioner is also set as the document's document partitioner.
delayInitialization
indicates whether the partitioner is
allowed to delay it initial computation of the document's partitioning
until it has to answer the first query.
Replaces IDocumentPartitioner.connect(IDocument)
.
document
- the document to be connected todelayInitialization
- true
if initialization can be delayed, false
otherwise
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.