|'Child Meta Feature' must reference 'Meta Class' or its sub-classes [message #987857]
||Wed, 28 November 2012 07:15
| Mary P.
Registered: November 2012
I try to create my diagram in Eclipse Papyrus (Juno) and when I choose the *Generate Papyrus diagram* option a receive a long list of errors.
One of them is the following:
'Child Meta Feature' must reference 'Meta Class' or its sub-classes
Can anybody explain me, please, what it means or where I can read more about it because I am the very beginner in Papyrus.
The structure of the diagram in my ecore file is very simple: I have an Architecture which contains Components. Architecture is my tio level elements and Components are the elements that should be modified by user.
|Re: 'Child Meta Feature' must reference 'Meta Class' or its sub-classes [message #988801 is a reply to message #987857]
||Mon, 03 December 2012 04:42
| Patrick Tessier
Registered: July 2009
The generation of diagram from scratch needs some clarification:
- because the gmf tooling is enough powerfull, we have modified the code generation.
We work directly from the gmfgen, never form gmffiag or gmftool.
we have added an extension of the gmfgen metamodel. So to open a gmfgen of papyrus, your need to have install org.eclipse.papyrus.gmfgenextension.
In the case of the class diagram, the validation of the gmfgen is not success, it is normal due to the limitation of the gmfgen.
After generating code, some specification has to be added manyally. this the reason that they are two src, generated and manual.
That's why designing papyrus diagram is not simple.
If i understanD you you want to extends UML. Papyrus is based on UML. So a lot oflibraries that we have developped is based of UML. So If you want to be not UML you can obtain some problems at runtime.
The best manner to extends UML is to use the mecanism of profil, see http://www.eclipse.org/modeling/mdt/papyrus/usersTutorials/resources/PapyrusUserGuideSeries_AboutUMLProfile_v1.0.0_d20120606.pdf
It is possible to extends existed diagram to give new shape, but for the moment it is quite complex. We would like to do that in the future with simple GUI.
Even if you want to generate a new diagram by extend UML ecore. You need to generated plugins to edit you ecore file, as EMF project.
Powered by FUDForum
. Page generated in 0.02527 seconds