How can I split containment references across multiple resources to support cross resource containment?
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
- Enterprise resource planning (ERP) systems are typically weak at graduate student support. How will Kuali Student be different?
- Resource References: Are there any recommended online resources on Jewish Childrearing or specifically for Jewish children?
- Does Harris myCFO have the resources to support my family for the long term?