|
Re: [EMFStore] Redo capability [message #1703683 is a reply to message #1703283] |
Tue, 04 August 2015 08:54 |
|
Hi,
The EMFStore Operation Manager does not work like a command stack. When an undo is performed, we undo the changes on the model and remove the now undone operations from the list of saved operations.
That is why we don't have redo support, since the undo will remove the required information.
For your problem I can see two possible solutions:
#1) You could make a contribution so that ProjectSpaceBase.undoLastOperations(int) returns the undone operations. Accordingly the UI controller should do so as well. Based on the returned operations you could add a custom redo support in your code.
#2) The second approach would be to write an own UI undo controller, which gives you access to the operations. You can get the list of operations from ProjectSpace#getLocalChangePackage(). Calling #.removeAtEnd() on the change package will give you access to the operations. This approach does not require changes to EMFStore.
Cheers
Johannes
Johannes Faltermeier
Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
|
|
|
|
Powered by
FUDForum. Page generated in 0.03126 seconds