|Re: Code Generation [message #1840699 is a reply to message #1840682]
||Thu, 22 April 2021 08:37
| German Vega
Registered: December 2015
Location: Grenoble, France
From your description is not clear what exactly is not working.
It is not clear if your problems are related to the ecore package definitions or your Sirius definitions (and better ask in the Sirius forum, as Ed suggested you).
One may guess from the screenshot that you successfully defined your metamodel in several packages.
In your question you mentioned the classes Input and Output, the only thing I can see on the screenshot that could be problematic is that you actually
have two different classes with those same names in different packages (one inherit from Local_Reference and the other from Global_Reference).
Sirius is very "flexible" concerning references to domain classes, if you do not explicitly specify the referenced metamodels it will lookup everywhere in the workspace
for a class with the given name, and many times it ends up picking up the wrong one.
You better use qualified names to reference your classes in your Sirius designer definition and explicitly reference the used metamodels ( as adviced in the sirius documentation) :
It is recommended that the Diagram Description be explicitly associated with the meta-model(s) of the semantic elements it will represent. You can add
referenced meta-models from different sources in the Metamodels property section of the Diagram Description. Sirius will work even without this association,
but setting it explicitly will give you better feedback when validating your VSM .
Why are you mentioning code generation in your post? what make you think this may be related to your problem?
Generating java code for your metamodel is not related, in principle, to Sirius designer definitions.
Again, Sirius is very flexible, it can work with generated or not generated (dynamic) metamodels, available on the workspace or installed in the Eclipse EMF registry, etc, etc.
What is your configuration? have you generated java code for your metamodel? did you generate the basic tree editor ? this may be a good idea, as you can check
that your metamodel is working, before getting into Sirius matters
Powered by FUDForum
. Page generated in 0.04924 seconds