This project is read-only.


Controller.UndoCommand() not working.


As per title :)
Demostration attatched.

file attachments


JamesWestgate wrote Apr 14, 2009 at 10:13 PM

Thanks for the demo. The undo/redo system follows the Command pattern as well as the Momento pattern (for extensibility reasons). At the moment there is a ModelMomento class but there is no way of adding ModelMomento objects to the Controller. To implement undo/redo, you need to add commands which can then be popped off the undo stack and pushed onto the redo stack etc etc. The Undo/Redo system doesn work automatically.

Adding ModelMomento is a todo item.

JamesWestgate wrote May 2, 2010 at 8:18 PM

This has now been addressed by adding the ModelCommand class and changing the implementation of the ModelMomento class. See updated example for implementation details.

wrote May 2, 2010 at 8:18 PM

wrote May 2, 2010 at 8:20 PM

wrote Feb 14, 2013 at 8:33 PM

wrote May 16, 2013 at 10:39 AM

wrote May 16, 2013 at 10:39 AM

Aidin_Rain wrote May 25, 2013 at 9:16 AM


Could you explain how should Undo and Redo exactly, I can`t understand how should add Undo,Redo commands.

wrote Jun 14, 2013 at 8:13 AM