-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add UndoCommand Feature #107
Add UndoCommand Feature #107
Conversation
… preparation for undo/redo commands
Shift responsibility of adding state to StateHistory to Commands which alter the address book, instead of the model manager
What's the syntax to test this? Courtesy of @nickyfoo: Just "undo". It will undo the last change to the AB (by add, delete, edit or clear). |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Yup, definitely planning to in a future iteration. I mentioned it in a currently unimplemented nextState method in StateHistory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Add a StateHistory class to keep track of the states of the address book as it changes, and an UndoCommand to make use of this.
Fixes #101.