Skip to main content



      Home
Home » Modeling » Graphiti » Undoing multiple commands during Graphiti undo execution
Undoing multiple commands during Graphiti undo execution [message #1835670] Wed, 09 December 2020 16:42
Eclipse UserFriend
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?

Thanks,
Alex

[Updated on: Thu, 10 December 2020 10:17] by Moderator

Previous Topic:ContainerShape without model representation
Next Topic:Detecting boundaries of the target container
Goto Forum:
  


Current Time: Thu Mar 20 15:19:19 EDT 2025

Powered by FUDForum. Page generated in 0.03293 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top