Package org.eclipse.jface.text
Class SlaveDocumentEvent
java.lang.Object
org.eclipse.jface.text.DocumentEvent
org.eclipse.jface.text.SlaveDocumentEvent
- Direct Known Subclasses:
ProjectionDocumentEvent
A slave document event represents a master document event as a slave-relative
document event. It also carries the master document event.
-
Field Summary
Fields inherited from class org.eclipse.jface.text.DocumentEvent
fDocument, fLength, fModificationStamp, fOffset, fText
-
Constructor Summary
ConstructorDescriptionSlaveDocumentEvent
(IDocument doc, int offset, int length, String text, DocumentEvent masterEvent) Creates a new slave document event. -
Method Summary
Modifier and TypeMethodDescriptionReturns this event's master event.Methods inherited from class org.eclipse.jface.text.DocumentEvent
getDocument, getLength, getModificationStamp, getOffset, getText, toString
-
Constructor Details
-
SlaveDocumentEvent
public SlaveDocumentEvent(IDocument doc, int offset, int length, String text, DocumentEvent masterEvent) Creates a new slave document event.- Parameters:
doc
- the slave documentoffset
- the offset in the slave documentlength
- the length in the slave documenttext
- the substitution textmasterEvent
- the master document event
-
-
Method Details
-
getMasterEvent
Returns this event's master event.- Returns:
- this event's master event
-