|
Eclipse Platform Release 3.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.
Field Summary | |
IDocument | fDocument
The changed document |
int | fLength
Length of the replaced document text |
int | fOffset
The document offset |
String | fText
Text inserted into the document |
Constructor Summary | |
DocumentEvent()
Creates a new, not initialized document event. | |
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 |
Field Detail |
public IDocument fDocument
public int fOffset
public int fLength
public String fText
Constructor Detail |
public DocumentEvent(IDocument doc, int offset, int length, String text)
public DocumentEvent()
Method Detail |
public IDocument getDocument()
public int getOffset()
public int getLength()
public String getText()
|
Eclipse Platform Release 3.0 | ||||||||||
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, 2004. All rights reserved.