|Undoing multiple commands during Graphiti undo execution [message #1835670]
|Wed, 09 December 2020 21:42
| Alex Kravets
Registered: November 2009
When I create object in a editor there are multiple commands that are being executed on command stack in TransactionalEditingDomain (TED). All these commands are not executed in one feature, but could be in different classes, the reason for this is because when object in dropped onto a canvas it may trigger some properties being set for the object based on configuration files. When I execute Ctrl+Z to undo object creation the command cycles through all the commands that were executed, how can undo all these commands in one call when undo is executed, rather then cycle through them?
Should I structure my code in such a way so that all commands are added to CompoundCommand and that is what in turn executes on TED?
[Updated on: Thu, 10 December 2020 15:17]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01677 seconds