|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.jface.text.SequentialRewriteTextStore
GapTextStore performs better even for sequential rewrite scenarios
A text store that optimizes a given source text store for sequential rewriting. While rewritten it keeps a list of replace command that serve as patches for the source store. Only on request, the source store is indeed manipulated by applying the patch commands to the source text store.
| Constructor Summary | |
|---|---|
SequentialRewriteTextStore(ITextStore source)
Deprecated. Creates a new sequential rewrite store for the given source store. |
|
| Method Summary | |
|---|---|
void |
dispose()
Deprecated. Disposes this rewrite store. |
char |
get(int offset)
Deprecated. Returns the character at the specified offset. |
String |
get(int offset,
int length)
Deprecated. Returns the text of the specified character range. |
int |
getLength()
Deprecated. Returns number of characters stored in this text store. |
ITextStore |
getSourceStore()
Deprecated. Returns the source store of this rewrite store. |
void |
replace(int offset,
int length,
String text)
Deprecated. Replaces the specified character range with the given text. |
void |
set(String text)
Deprecated. Replace the content of the text store with the given text. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SequentialRewriteTextStore(ITextStore source)
source - the source text store| Method Detail |
public ITextStore getSourceStore()
public void replace(int offset,
int length,
String text)
ITextStorereplace(getLength(), 0, "some text") is a valid
call and appends text to the end of the text store.
replace in interface ITextStoreoffset - the offset of the range to be replacedlength - the number of characters to be replacedtext - the substitution textpublic void set(String text)
ITextStorereplace(0, getLength(), text.
set in interface ITextStoretext - the new content of the text store
public String get(int offset,
int length)
ITextStore
get in interface ITextStoreoffset - the offset of the rangelength - the length of the range
public char get(int offset)
ITextStore
get in interface ITextStoreoffset - the offset in this text store
public int getLength()
ITextStore
getLength in interface ITextStorepublic void dispose()
|
Eclipse Platform Release 3.3 |
|||||||||||
| 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, 2007. All rights reserved.