|
Eclipse Platform 2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.eclipse.jface.text.ProjectionTextStore
The text store of a ProjectionDocument. Implements the projection onto
the master document.
This class is for internal use only.
| Constructor Summary | |
ProjectionTextStore(ProjectionDocument projectionDocument)
Creates a new projection text store for the given projection document. |
|
| 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 contents)
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 ProjectionTextStore(ProjectionDocument projectionDocument)
projectionDocument - the projection document| Method Detail |
public void set(String contents)
ITextStorereplace(0, getLength(), text.set in interface ITextStoreorg.eclipse.jface.text.ITextStoretext - the new content of the text store
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 ITextStoreorg.eclipse.jface.text.ITextStoreoffset - the offset of the range to be replacedlength - the number of characters to be replacedtext - the substitution textpublic int getLength()
ITextStoregetLength in interface ITextStoreorg.eclipse.jface.text.ITextStore
public String get(int offset,
int length)
ITextStoreget in interface ITextStoreorg.eclipse.jface.text.ITextStoreoffset - the offset of the rangelength - the length of the rangepublic char get(int offset)
ITextStoreget in interface ITextStoreorg.eclipse.jface.text.ITextStoreoffset - the offset in this text store
|
Eclipse Platform 2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||