Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Setting eContainer for EObjects of a dynamically created EPackage
Setting eContainer for EObjects of a dynamically created EPackage [message #545588] Thu, 08 July 2010 10:24 Go to next message
Ralf Buschermoehle is currently offline Ralf BuschermoehleFriend
Messages: 81
Registered: July 2009
Member
Hi,

how do I define the dynamic ePackage programmatically in a way that
loaded eObjects created from the ePackage know their eContainer?

I already set "setContainment" for the references I create to "true"
(where applicable).

Greetings,

Ralf
Re: Setting eContainer for EObjects of a dynamically created EPackage [message #545630 is a reply to message #545588] Thu, 08 July 2010 13:10 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Ralf,

Setting containment to true should be all that's necessary. Well that
and adding the object to such a reference.


Ralf Buschermoehle wrote:
> Hi,
>
> how do I define the dynamic ePackage programmatically in a way that
> loaded eObjects created from the ePackage know their eContainer?
>
> I already set "setContainment" for the references I create to "true"
> (where applicable).
>
> Greetings,
>
> Ralf


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Restructuring properties in properties view
Next Topic:EMF newbie question
Goto Forum:
  


Current Time: Tue Apr 23 12:10:42 GMT 2024

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

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

Back to the top