|
Eclipse Platform Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.text.AbstractDocument
org.eclipse.jface.text.Document
public class Document
Default document implementation. Uses a
GapTextStore wrapped inside a
CopyOnWriteTextStore as default text store and a
SequentialRewriteTextStore when in sequential
rewrite mode.
The used line tracker considers the following strings as line delimiters "\n", "\r", "\r\n".
The document is ready to use. It has a default position category for which a default position updater is installed.
GapTextStore,
SequentialRewriteTextStore,
CopyOnWriteTextStore| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.jface.text.IDocumentExtension |
|---|
IDocumentExtension.IReplace |
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.jface.text.IDocument |
|---|
DEFAULT_CATEGORY, DEFAULT_CONTENT_TYPE |
| Fields inherited from interface org.eclipse.jface.text.IDocumentExtension3 |
|---|
DEFAULT_PARTITIONING |
| Fields inherited from interface org.eclipse.jface.text.IDocumentExtension4 |
|---|
UNKNOWN_MODIFICATION_STAMP |
| Constructor Summary | |
|---|---|
Document()
Creates a new empty document. |
|
Document(String initialContent)
Creates a new document with the given initial content. |
|
| Method Summary | |
|---|---|
void |
startSequentialRewrite(boolean normalized)
Tells the document that it is about to be sequentially rewritten. |
void |
stopSequentialRewrite()
Tells the document that the sequential rewrite has been finished. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Document()
public Document(String initialContent)
initialContent - the document's initial content| Method Detail |
|---|
public void startSequentialRewrite(boolean normalized)
IDocumentExtensionnormalize flag indicates whether the rewrite is performed from
the start of the document to its end or from an arbitrary start offset.
The document is considered being in sequential rewrite mode as long as
stopSequentialRewrite has not been called.
startSequentialRewrite in interface IDocumentExtensionstartSequentialRewrite in class AbstractDocumentnormalized - true if performed from the start to the end of the documentpublic void stopSequentialRewrite()
IDocumentExtensionstartSequentialRewrite has been called before.
stopSequentialRewrite in interface IDocumentExtensionstopSequentialRewrite in class AbstractDocument
|
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.