Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » I don't have new child from the pop-up menu
icon5.gif   I don't have new child from the pop-up menu [message #515812] Sun, 21 February 2010 10:53 Go to next message
farah Mising name is currently offline farah Mising nameFriend
Messages: 58
Registered: July 2009
Member
Hello to all,
when I right click in the root object of dynamic instance (.xmi) I don't have new child from the pop-up menu!!??
thank you for your help
Re: I don't have new child from the pop-up menu [message #515821 is a reply to message #515812] Sun, 21 February 2010 12:51 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Farah,

Does your root object have any containment references?


farah wrote:
> Hello to all,
> when I right click in the root object of dynamic instance (.xmi) I
> don't have new child from the pop-up menu!!??
> thank you for your help


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: I don't have new child from the pop-up menu [message #515827 is a reply to message #515821] Sun, 21 February 2010 14:22 Go to previous messageGo to next message
farah Mising name is currently offline farah Mising nameFriend
Messages: 58
Registered: July 2009
Member
Yes


<eClassifiers xsi:type="ecore:EClass" name="Configuration">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="comp" upperBound="-1" eType="#//Component"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="compInst" upperBound="-1"
eType="#//ComponentInstance"/>
......

[Updated on: Sun, 21 February 2010 14:24]

Report message to a moderator

Re: I don't have new child from the pop-up menu [message #515829 is a reply to message #515812] Sun, 21 February 2010 14:51 Go to previous messageGo to next message
farah Mising name is currently offline farah Mising nameFriend
Messages: 58
Registered: July 2009
Member
yes

<eClassifiers xsi:type="ecore:EClass" name="Configuration">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="comp" upperBound="-1" eType="#//Component"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="compInst" upperBound="-1"
eType="#//ComponentInstance"/>
......
Re: I don't have new child from the pop-up menu [message #515837 is a reply to message #515812] Sun, 21 February 2010 16:40 Go to previous messageGo to next message
farah Mising name is currently offline farah Mising nameFriend
Messages: 58
Registered: July 2009
Member
No Message Body
Re: I don't have new child from the pop-up menu [message #515840 is a reply to message #515829] Sun, 21 February 2010 17:41 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Farah,

Those look like non-containment references. Child creation is supported
by default only for containment references.

farah wrote:
> yes
> <eClassifiers xsi:type="ecore:EClass" name="Configuration">
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
> lowerBound="1" eType="ecore:EDataType
> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="comp"
> upperBound="-1" eType="#//Component"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="compInst"
> upperBound="-1"
> eType="#//ComponentInstance"/>
> .....


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: I don't have new child from the pop-up menu [message #515865 is a reply to message #515812] Sun, 21 February 2010 21:57 Go to previous messageGo to next message
farah Mising name is currently offline farah Mising nameFriend
Messages: 58
Registered: July 2009
Member
What must I do to get an instance of my metamodel in one. xmi
Re: I don't have new child from the pop-up menu [message #515869 is a reply to message #515865] Sun, 21 February 2010 23:22 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Farah,

Set the containment feature of the EReference to be true in the
properties view.


farah wrote:
> What must I do to get an instance of my metamodel in one. xmi


Ed Merks
Professional Support: https://www.macromodeling.com/
icon12.gif  Re: I don't have new child from the pop-up menu [message #516015 is a reply to message #515812] Mon, 22 February 2010 13:48 Go to previous messageGo to next message
farah Mising name is currently offline farah Mising nameFriend
Messages: 58
Registered: July 2009
Member
thank you very very very much Very Happy Very Happy Very Happy
Re: I don't have new child from the pop-up menu [message #519955 is a reply to message #516015] Wed, 10 March 2010 15:54 Go to previous message
Ronald is currently offline RonaldFriend
Messages: 5
Registered: March 2010
Junior Member
Sometimes setting the containment to true is not enough to get the option to add a child. This is possible when for some reasons a sync problem appears between ecore and ecorediag. What I usually do when this happens is go to the property within the genmodel file and open the property view. Within this property I set the top 3 (Child, create children, notify) to true and the options property multi line, property sort choices to false and property type to none. After doing this your able to create children Smile
Previous Topic:[CDO] A way to limit the audit history?
Next Topic:Editor Plugin
Goto Forum:
  


Current Time: Thu Mar 28 08:23:55 GMT 2024

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

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

Back to the top