Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EObject is part of TWO containement references: is it possible?
EObject is part of TWO containement references: is it possible? [message #513825] Thu, 11 February 2010 12:33 Go to next message
Giovanni De Sossi is currently offline Giovanni De SossiFriend
Messages: 161
Registered: October 2009
Location: Rome, Italy
Senior Member

Hi,

I have a TreeNavigator who shows only model objects; it retrieves his initial input from an EMF model, created via Java code. When I select an object on the tree and configure it as "root object" to a GMF Diagram, the object itself disappears from the tree (and from the underlying model, too.) Since the object is part of two containement reference in the model, one for the [MyProject] model object displayed in the tree, the other for the [MyProject]Diagram model object displayed in the GMF Diagram, maybe is this impossible in EMF? Maybe an EObject cannot belongs to more than one containement reference?

Thanks for any help, regards

Giovanni.
Re: EObject is part of TWO containement references: is it possible? [message #513845 is a reply to message #513825] Thu, 11 February 2010 13:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Hi,

No it isn't possible. It can't be contained by two different objects.

It depends on what is the true structure of your model. Is the tree
structure the true structure or is the GMF Diagram the true structure,
or is there a third model that is the true structure and the tree and
GMF are just representations.

The true structure uses the containment and the others use references.

--
Thanks,
Rich Kulp
Re: EObject is part of TWO containement references: is it possible? [message #513848 is a reply to message #513845] Thu, 11 February 2010 13:59 Go to previous message
Giovanni De Sossi is currently offline Giovanni De SossiFriend
Messages: 161
Registered: October 2009
Location: Rome, Italy
Senior Member

Hi Rich,

thank you a lot for your answer and for your useful suggestions.

Regards,

Giovanni.
Previous Topic:"Should I stay or should I go!"
Next Topic:Problem with ChangeRecorder and lazy load
Goto Forum:
  


Current Time: Fri Apr 26 20:12:12 GMT 2024

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

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

Back to the top