|Re: Need some help to understand the process Papyrus => Acceleo => java code [message #654985 is a reply to message #654937]
||Thu, 17 February 2011 21:27
| Glenview Jeff
Registered: September 2010
Without putting too much thought into this response, I would suggest you look at some of the Acceleo tutorials. UPDATE: I just downloaded Papyrus and verified that this works even without changing the default .mtl file.|
Instead of creating your own meta-model (skip over this in the tutorials), and instead of instantiating a model from a custom meta-model, you'll use the UML meta-model and the model file you created from Papyrus.
This will come into play during the part where you create a new acceleo project (skip the part where you spawn a new Eclipse session). From Eclipse, Go to File, new, Acceleo Project, next, for the meta-model, click browse and use the UML2 one (I think it should be http://www.eclipse.org/uml2/3.0.0/UML).
For the generate for type field, try creating a generator for "class" type, and see the tutorials for examples on how to create generators.
When you're ready to test your generator, you'll right-click on the "main.mtl" file like you created in the tutorials, and select the papyrus model (the .uml file) you created along with the other parameters mentioned in the tutorials.
[Updated on: Thu, 17 February 2011 22:20]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02829 seconds