|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.text.undo.DocumentUndoEvent
Describes document changes initiated by undo or redo.
Clients are not supposed to subclass or create instances of this class.
IDocumentUndoManager
,
IDocumentUndoListener
Field Summary | |
---|---|
static int |
ABOUT_TO_REDO
Indicates that the described document event is about to be redone. |
static int |
ABOUT_TO_UNDO
Indicates that the described document event is about to be undone. |
static int |
COMPOUND
Indicates that the described document event is a compound undo or redo event. |
static int |
REDONE
Indicates that the described document event has been redone. |
static int |
UNDONE
Indicates that the described document event has been undone. |
Method Summary | |
---|---|
IDocument |
getDocument()
Returns the changed document. |
int |
getEventType()
Returns the type of event that is occurring. |
int |
getOffset()
Returns the offset of the change. |
String |
getPreservedText()
Returns the text that has been replaced. |
Object |
getSource()
Returns the source that triggered this event. |
String |
getText()
Returns the text that has been inserted. |
boolean |
isCompound()
Returns whether the change was a compound change or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ABOUT_TO_UNDO
public static final int ABOUT_TO_REDO
public static final int UNDONE
public static final int REDONE
public static final int COMPOUND
Method Detail |
public IDocument getDocument()
public int getOffset()
public String getText()
public String getPreservedText()
public int getEventType()
public Object getSource()
public boolean isCompound()
true
if the undo or redo change is a
compound change, false
if it is not
|
Eclipse Platform Release 3.3 |
|||||||||||
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, 2007. All rights reserved.