Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I split containment references across multiple resources to support cross resource containment?

0
Posted

How can I split containment references across multiple resources to support cross resource containment?

0

Normally if you add a contained child to the contents of a resource, it will be removed from its container, i.e., EObject.eContainer() will become null. Since EMF 2.2, support was added so that if a containment reference is proxy resolving (EReference.isResolveProxies() is true), an object can be added to the contents of a resouLink titlerce without removing it from its container’s proxy resolving reference. For this setting of the Ecore model to be respected by the generator, you must set the GenModel’s “Containment Proxies” property to true. The Ecore model itself has examples of this, i.e., EPackage.getEClassifiers() is proxy resolving so you can store an EClass is a separate resource from its containing EPackage. As a result, you can right click on an EClass and invoke “Control…” to specify a new resource in which to store the EClass. The “Control…” action is available in the generated editors for any object that is contained by a proxy resolving containment reference.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123