Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Undoing multiple commands during Graphiti undo execution
Undoing multiple commands during Graphiti undo execution [message #1835670] Wed, 09 December 2020 21:42
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
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 15:17]

Report message to a moderator

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


Current Time: Wed Sep 11 00:21:05 GMT 2024

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

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

Back to the top