|
Eclipse Platform Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITextStore
Interface for storing and managing text.
Provides access to the stored text and allows to manipulate it.
Clients may
implement this interface or use GapTextStore,
CopyOnWriteTextStore and
SequentialRewriteTextStore.
| 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. |
| Method Detail |
|---|
char get(int offset)
offset - the offset in this text store
String get(int offset,
int length)
offset - the offset of the rangelength - the length of the range
int getLength()
void replace(int offset,
int length,
String text)
replace(getLength(), 0, "some text") is a valid
call and appends text to the end of the text store.
offset - the offset of the range to be replacedlength - the number of characters to be replacedtext - the substitution textvoid set(String text)
replace(0, getLength(), text.
text - the new content of the text store
|
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.