StrictCompoundCommand and TransactionalEditingDomain [message #580310] |
Fri, 09 June 2006 14:18 |
Eclipse User |
|
|
|
Originally posted by: vhirsl.gmail.com
Hi,
I am using CreateChildCommand to create a new child modeling element.
Since this is a CommandWrapper it will try to create an AddCommand when
canExecute is called. The createAddCommand method is overridden in
parent's ItemAdapterProvider to return a StrictCompoundCommand. Then
when canExecute is called on this compound command the first command is
actually executed without a transition being created and that causes an
IllegalStateException exception.
My question is: Is it possible to use StrictCompoundCommand-s with
TransactionalEditingDomain? If not, what would you suggest using instead
to create another modeling element before desired new element is created?
Before the CreateChildCommand the model looks like this:
M - PE
Desired model after the CreateChildCommand is executed:
M - PE - PE2 - CE
Thanks,
Vmir
|
|
|
Powered by
FUDForum. Page generated in 0.03282 seconds