Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Transaction notifications for undo/redo
Transaction notifications for undo/redo [message #1009759] Fri, 15 February 2013 16:45 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Copy between resources - Dangling References
Next Topic:[CDO]
Goto Forum:
  


Current Time: Thu Apr 25 09:54:43 GMT 2024

Powered by FUDForum. Page generated in 0.02927 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top