Skip to content

GerdHirsch/java-UndoRedoFramework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Undo Redo Framework

A detailed documentation is found in my OODPScript.pdf
Ask for Workshops and Scripts at http://www.gerdhirsch.de/SeminarOOAnalyseUML.html

Command Pattern (GoF)

This Framework is based on the Design Pattern of the GoF
called Command Pattern
UndoRedoManager is Invoker
it establishes the possibility to track modifications UndoRedoManager extends UndoRedoStack
UndoRedoStack is the common infrastructure for UndoRedoManager and CompositeCommand

Composite Pattern (GoF)

There is also a CompositeCommand for user defined sequences of commands, called makros and programmable multiple Commands

Tests

Tests are provided in package de.gerdhirsch.undoredo.test using hamcrest assertThat(..) for UndoRedoStack, UndoRedoManager and CompositeCommand
and are usage examples based on a simple Calculator and Plus and Minus Commands
Common Test Base is class UndoRedoTest

for hamcrest

read http://www.vogella.com/tutorials/Hamcrest/article.html#hamcrestoverview

About

A undo/redo Framework based on Command and Composite Pattern

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages