An action as an object
An editor must support undo. Each action is turned into an object with
execute and undo methods, and executed commands are kept on a stack.
What makes this work?
An editor must support undo. Each action is turned into an object with
execute and undo methods, and executed commands are kept on a stack.
What makes this work?