Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [XCORE] Problems with containment proxies(Containment proxies are not working)
[XCORE] Problems with containment proxies [message #1046857] Mon, 22 April 2013 13:19 Go to next message
Greg Babcock is currently offline Greg BabcockFriend
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 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
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/
Re: [XCORE] Problems with containment proxies [message #1047598 is a reply to message #1046968] Tue, 23 April 2013 12:34 Go to previous message
Greg Babcock is currently offline Greg BabcockFriend
Messages: 41
Registered: October 2012
Member
Thanks Ed, I was unaware of the resolving keyword.
Previous Topic:Eclipse e4 not running directly from product configuration file
Next Topic:EMF Edit - can additional operations happen when a command happens?
Goto Forum:
  


Current Time: Tue Mar 19 10:16:48 GMT 2024

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

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

Back to the top