public class DocumentEvent extends Object
IDocument
Modifier and Type | Field and Description |
---|---|
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
|
String |
fText
Text inserted into the document
|
Constructor and Description |
---|
DocumentEvent()
Creates a new, not initialized document event.
|
DocumentEvent(IDocument doc,
int offset,
int length,
String text)
Creates a new document event.
|
Modifier and Type | Method and Description |
---|---|
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.
|
String |
getText()
Returns the text that has been inserted.
|
String |
toString() |
public IDocument fDocument
public int fOffset
public int fLength
public String fText
public long fModificationStamp
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()
public IDocument getDocument()
public int getOffset()
public int getLength()
public String getText()
public long getModificationStamp()
IDocumentExtension4.UNKNOWN_MODIFICATION_STAMP
.IDocumentExtension4.getModificationStamp()
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.