|
Eclipse Platform 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.eclipse.jface.text.DocumentEvent
Specification of changes applied to documents. All changes are represented as replace commands, i.e. specifying a document range whose text gets replaced with different text. In addition to this information, the event also contains the changed document.
IDocument| Constructor Summary | |
DocumentEvent(IDocument doc,
int offset,
int length,
String text)
Creates a new document event. |
|
| Method Summary | |
IDocument |
getDocument()
Returns the changed document. |
int |
getLength()
Returns the length of the replaced text. |
int |
getOffset()
Returns the offset of the change |
String |
getText()
Returns the text that has been inserted. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DocumentEvent(IDocument doc,
int offset,
int length,
String text)
doc - the changed documentoffset - the offset of the replaced textlength - the length of the replaced texttext - the substitution text| Method Detail |
public IDocument getDocument()
public int getOffset()
public int getLength()
public String getText()
|
Eclipse Platform 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||