|
|
|
|
Re: Undo/Redo two Commands at once [message #1016632 is a reply to message #1016517] |
Thu, 07 March 2013 08:26 |
Ralph P Messages: 30 Registered: September 2010 Location: Frankfurt, Germany |
Member |
|
|
Thanks for the help! I found why it was not working even with a compound command.
The second Command(-chain) was invalid, since it expected the result of the first Command on creation (which was not yet executed).
In other words I did:
- Create Command 1
- Create Command 2 (<- That's the problem. Command 2 needs Command 1 to be executed before creation/initialization.)
- Execute both commands using a CompoundCommand
I will try to create my own AbstractOverrideableCommand and add it to a CompoundCommand, so it will be using the "new" EObjects after the first Command was executed.
EDIT: Creating a new CompundCommand is probably a better approach.
I know my explanations are kind of blurry, but it is fairly complicated what I'm trying to do(importing EObjects from one Resouruce into another, including lots of EReferences and a merge mechanism).
You already helped me a lot, I have no questions left right now. I'll post a status update as soon as I made some progress.
[Updated on: Thu, 07 March 2013 08:45] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06921 seconds