| org.eclipse.jface.text.ITextStore
All known Subclasses: org.eclipse.jface.text.SequentialRewriteTextStore, org.eclipse.jface.text.CopyOnWriteTextStore, org.eclipse.jface.text.projection.ProjectionTextStore, org.eclipse.jface.text.GapTextStore,
Method Summary | |
char | get(int offset) Returns the character at the specified offset. | String | get(int offset, int length) Returns the text of the specified character range. | int | getLength() Returns number of characters stored in this text store. | void | replace(int offset, int length, String text) Replaces the specified character range with the given text. | void | set(String text) Replace the content of the text store with the given text. |
get | char get(int offset)(Code) | | Returns the character at the specified offset.
Parameters: offset - the offset in this text store the character at this offset |
get | String get(int offset, int length)(Code) | | Returns the text of the specified character range.
Parameters: offset - the offset of the range Parameters: length - the length of the range the text of the range |
getLength | int getLength()(Code) | | Returns number of characters stored in this text store.
the number of characters stored in this text store |
replace | void replace(int offset, int length, String text)(Code) | | Replaces 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.
Parameters: offset - the offset of the range to be replaced Parameters: length - the number of characters to be replaced Parameters: text - the substitution text |
set | void set(String text)(Code) | | Replace the content of the text store with the given text.
Convenience method for replace(0, getLength(), text .
Parameters: text - the new content of the text store |
|
|