public class DocumentUndoEvent extends Object
Clients are not supposed to subclass or create instances of this class.
IDocumentUndoManager
,
IDocumentUndoListener
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.