Snippets tagged commands

  • Undoable Commands

    A simple implementation of an Undoable Command, with a Document to hold a stack of actions. 2 examples of UndoableCommand are given - 1 allows property changes to be remembered, and another which allows the user to execute an action with a corresponding undo. Further examples could include CompositeUndoableCommands where the command is itself a list of commands.

    0 people like this

    Posted: 12 years ago by Neil Danson