|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public void startRewriteSession(DocumentRewriteSession session) throws IllegalStateException
session
- the rewrite session
IllegalStateException
- in case there is already an active rewrite sessionpublic void stopRewriteSession(DocumentRewriteSession session)
startRewriteSession
has
been called before.
session
- the rewrite sessionpublic DocumentRewriteSession getActiveRewriteSession()
null
.
null
public 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.1 |
|||||||||||
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, 2005. All rights reserved.