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: 555
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: Mon Apr 19 19:58:13 GMT 2021

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

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

Back to the top