Package org.eclipse.jface.text
Class SequentialRewriteTextStore
java.lang.Object
org.eclipse.jface.text.SequentialRewriteTextStore
- All Implemented Interfaces:
ITextStore
Deprecated.
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.
- Since:
- 2.0
-
Constructor Details
-
SequentialRewriteTextStore
Deprecated.Creates a new sequential rewrite store for the given source store.- Parameters:
source- the source text store
-
-
Method Details
-
getSourceStore
Deprecated.Returns the source store of this rewrite store.- Returns:
- the source store of this rewrite store
-
replace
Deprecated.Description copied from interface:ITextStoreReplaces the specified character range with the given text.replace(getLength(), 0, "some text")is a valid call and appends text to the end of the text store.- Specified by:
replacein interfaceITextStore- Parameters:
offset- the offset of the range to be replacedlength- the number of characters to be replacedtext- the substitution text
-
set
Deprecated.Description copied from interface:ITextStoreReplace the content of the text store with the given text. Convenience method forreplace(0, getLength(), text.- Specified by:
setin interfaceITextStore- Parameters:
text- the new content of the text store
-
get
Deprecated.Description copied from interface:ITextStoreReturns the text of the specified character range.- Specified by:
getin interfaceITextStore- Parameters:
offset- the offset of the rangelength- the length of the range- Returns:
- the text of the range
-
get
Deprecated.Description copied from interface:ITextStoreReturns the character at the specified offset.- Specified by:
getin interfaceITextStore- Parameters:
offset- the offset in this text store- Returns:
- the character at this offset
-
getLength
Deprecated.Description copied from interface:ITextStoreReturns number of characters stored in this text store.- Specified by:
getLengthin interfaceITextStore- Returns:
- the number of characters stored in this text store
-
dispose
Deprecated.Disposes this rewrite store.
-
GapTextStoreperforms better even for sequential rewrite scenarios