|
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.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
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 uninitialized 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)
doc
- the changed documentoffset
- the offset of the replaced textlength
- the length of the replaced texttext
- the substitution textpublic DocumentEvent()
Method Detail |
public IDocument getDocument()
public int getOffset()
public int getLength()
public String getText()
|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |