Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » StrictCompoundCommand and TransactionalEditingDomain
StrictCompoundCommand and TransactionalEditingDomain [message #580310] Fri, 09 June 2006 18:18
Eclipse UserFriend
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
Previous Topic:JETEDITOR - read-only package exception
Next Topic:StrictCompoundCommand and TransactionalEditingDomain
Goto Forum:
  


Current Time: Fri Apr 26 21:41:44 GMT 2024

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

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

Back to the top