action-a, action-b, undo, undo, redo, redo fails
Status: Beta
Brought to you by:
koivusa
Some of the actions, while supporting undo and redo do
not support the contract of the undoable actions.
For example performing the two following actins:
*Create method
*Modify method (name for instance)
Undo both actions.
Redo create method: OK
Redo modify method: NOT OK - the modify method action
has a reference to a Method object created inicially,
but the redo create method creates a new Method action
which is the one that should be modified.
The simplest solution seems to be adjusting the
existing actions so that the bulk of creating new
objects would be done in the initializer and not in the
perform method. That way it will "always create the
same object".