|
Eclipse Platform Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDocumentPartitionerExtension3
Extension interface for IDocumentPartitioner
. Adds the
concept of rewrite sessions. A rewrite session is a sequence of replace
operations that form a semantic unit.
Method Summary | |
---|---|
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. |
Method Detail |
---|
void startRewriteSession(DocumentRewriteSession session) throws java.lang.IllegalStateException
session
- the rewrite session
java.lang.IllegalStateException
- 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
|
Eclipse Platform Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.