|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.text.DocumentEvent
public class 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 |
long |
fModificationStamp
The modification stamp of the document when firing this event. |
int |
fOffset
The document offset |
java.lang.String |
fText
Text inserted into the document |
| Constructor Summary | |
|---|---|
DocumentEvent()
Creates a new, not initialized document event. |
|
DocumentEvent(IDocument doc,
int offset,
int length,
java.lang.String text)
Creates a new document event. |
|
| Method Summary | |
|---|---|
IDocument |
getDocument()
Returns the changed document. |
int |
getLength()
Returns the length of the replaced text. |
long |
getModificationStamp()
Returns the document's modification stamp at the time when this event was sent. |
int |
getOffset()
Returns the offset of the change. |
java.lang.String |
getText()
Returns the text that has been inserted. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public IDocument fDocument
public int fOffset
public int fLength
public java.lang.String fText
public long fModificationStamp
| Constructor Detail |
|---|
public DocumentEvent(IDocument doc,
int offset,
int length,
java.lang.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 java.lang.String getText()
public long getModificationStamp()
IDocumentExtension4.UNKNOWN_MODIFICATION_STAMP.IDocumentExtension4.getModificationStamp()public java.lang.String toString()
toString in class java.lang.Object
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.