Transaction notifications for undo/redo [message #1009759] |
Fri, 15 February 2013 16:45 |
Eclipse User |
|
|
|
Hello,
I'm using a ResourceSetListenerImpl to listen to, and record, model
changes. However the ResourceSetChangeEvents which I get to process only
tell me if the underlying transaction is
OPTION_IS_UNDO_REDO_TRANSACTION. But I would like to know whether it is
undo OR(!) redo. Is that somehow possible?
I need this because I need to perform corresponding undo/redo operations
in the changes record I'm keeping.
TIA
Marius
|
|
|
Re: Transaction notifications for undo/redo [message #1010822 is a reply to message #1009759] |
Mon, 18 February 2013 09:46 |
Eclipse User |
|
|
|
On 15.02.2013 17:45, Marius Gröger wrote:
> I'm using a ResourceSetListenerImpl to listen to, and record, model
> changes. However the ResourceSetChangeEvents which I get to process only
> tell me if the underlying transaction is
> OPTION_IS_UNDO_REDO_TRANSACTION. But I would like to know whether it is
> undo OR(!) redo. Is that somehow possible?
>
> I need this because I need to perform corresponding undo/redo operations
> in the changes record I'm keeping.
To answer myself: my ResourceSetListenerImpl now also is a
IOperationHistoryListener and is attached to the TED's command stack's
operation history. This way I am informed about ongoing undo/redo
operations.
Marius
|
|
|
Powered by
FUDForum. Page generated in 0.04084 seconds