[XCORE] Problems with containment proxies [message #1046857] |
Mon, 22 April 2013 13:19 |
Greg Babcock Messages: 41 Registered: October 2012 |
Member |
|
|
When I add an EObject to a resource it removes the EObject from its container. I enabled containment proxies in the Gen Model, and then deleted and regenerated the source code. Is there anything else that I need to do?
@GenModel(editDirectory="/com.tas.ats.model/src-gen", copyrightText="", contentTypeIdentifier="ATS", resource="XMI", language="", modelPluginClass="", operationReflection="false", containmentProxies="true", classNamePattern="")
I am using EMF 2.9 and XCore 1.01.
Thank You
Greg Babcock
|
|
|
Re: [XCORE] Problems with containment proxies [message #1046968 is a reply to message #1046857] |
Mon, 22 April 2013 16:01 |
Ed Merks Messages: 33108 Registered: July 2009 |
Senior Member |
|
|
Greg,
Did you mark the containment with the "resolving" keyword? Unlike in
Ecore where all references are proxy resolving by default, in Xcore,
containment and container references are non-resolving by default. Also
containmentProxies should be true by default, so that's not necessary.
On 22/04/2013 3:19 PM, Greg Babcock wrote:
> When I add an EObject to a resource it removes the EObject from its
> container. I enabled containment proxies in the Gen Model, and then
> deleted and regenerated the source code. Is there anything else that
> I need to do?
>
> @GenModel(editDirectory="/com.tas.ats.model/src-gen",
> copyrightText="", contentTypeIdentifier="ATS", resource="XMI",
> language="", modelPluginClass="", operationReflection="false",
> containmentProxies="true", classNamePattern="")
>
>
> I am using EMF 2.9 and XCore 1.01.
>
>
> Thank You
>
> Greg Babcock
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.02456 seconds