Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » UML2AdapterFactoryEditingDomain question
UML2AdapterFactoryEditingDomain question [message #499506] Mon, 23 November 2009 00:53 Go to next message
Cristian Mising name is currently offline Cristian Mising name
Messages: 74
Registered: July 2009
Member
Hello,

I have noticed the class UML2AdapterFactoryEditingDomain (while studying the ChangeCommand). I see that it doesn't have any doc attached, and it seems to have something to do with a ChangeRecorder related behavior.

Do you know what this class does and if there are advantages/disadvantages regarding the use of this class (rather than the standard AdapterFactoryEditingDomain)?

Thank you.

Cristi.
Re: UML2AdapterFactoryEditingDomain question [message #500618 is a reply to message #499506] Fri, 27 November 2009 03:04 Go to previous messageGo to next message
Sorin Fagateanu is currently offline Sorin Fagateanu
Messages: 46
Registered: July 2009
Member
Hello,

As far as I know, the UML2AdapterFactoryEditingDomain class ensures a different behavior for the unique features. The list with the FeatureChanged elements (which contains the features that were changed for an EObject) and the resourceChanged list (from the ChangeDescription class) are prevented to accept duplicates.

Still I can not understand exactly what this modification serves for. Could anyone perhaps provide more information about this behavior?

Sorin Fagateanu
Re: UML2AdapterFactoryEditingDomain question [message #504280 is a reply to message #500618] Thu, 17 December 2009 23:15 Go to previous messageGo to next message
Kenn Hussey is currently offline Kenn Hussey
Messages: 1618
Registered: July 2009
Senior Member
Yes, the default behavior from EMF has been overridden so that subset/superset constraints (specific to UML) can properly be enforced.

Kenn
Re: UML2AdapterFactoryEditingDomain question [message #504288 is a reply to message #499506] Thu, 17 December 2009 23:48 Go to previous message
Cristian Mising name is currently offline Cristian Mising name
Messages: 74
Registered: July 2009
Member
Dear Kenn,

Thank you for your reply.
Does that mean that when using a ChangeCommand (or a ChangeRecorder) on an UML2 model, the use of UML2AdapterFactoryEditingDomain as editing domain is mandatory? I.e. using a "normal" AdapterFactoryEditingDomain would lead in some cases to undesired behavior?

Best regards,
Cristian.
Previous Topic:UML2 genmodel properties for EClasses
Next Topic:UML2AdapterFactoryEditingDomain question
Goto Forum:
  


Current Time: Fri Apr 18 11:44:03 EDT 2014

Powered by FUDForum. Page generated in 0.01589 seconds