Hi!

I'm trying to understand the undo manager, but not much luck so far...

An UndoableAction has to generate an AbstractCommand (shouldn't that
be UndoableCommand, since there is a NonUndoableCommand?), that is pushed
on top of the UndoStack, right?

So UndoableAction is undoable, but has no method getUndoableCommand() (or so),
which is required to have something to push on the stack?

Example: 

ActionGotoDiagram is supposed to be undoable.

So (as I understand it), this action should be able to return a
(undoable) command <go to the selected diagram). This command also
has to store the current diagram, since the undo() method of this command
has to go to this diagram (the previous diagram, once the new diagram is
selected).

It has a method doCommand(<name of new diagram>), but I guess it should 
have a method getCommand(<name of new diagram>), that is 
1. executed then and
2. pushed on top of the undo stack
?

Or is there soemthing wrong in my understanding?

TIA,
Andreas

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2755286

To unsubscribe from this discussion, e-mail: 
[[email protected]].
To be allowed to post to the list contact the mailing list moderator, email: 
[[email protected]]

Reply via email to