|
Hi Henrik, There is any document/tutorial on how to create/customize generation templates. In order to use templates with SysML, you need to add an extension for it, that's why I advice you to check out the existing templates from the CVS instead of using jar files. Existing templates are available here: :pserver:[email protected]:/cvsroot/gendoc-library As you said there is no template for SysML. Some informations to do it: 1 - Write your template according to the SysML metamodel. About the acceleo language, take a peek at the Acceleo documentation: http://www.acceleo.org/pages/introduction/en 2 - Keep the property: file="<%getOutputFile(getRootContainer(getProperty("root_container")), getProperty("resultFileName"))%>" %> 3 - Add an extension for your template in the plugin.xml file: <extension point="org.topcased.gendoc.model2docbook.docGenerators"> <docGenerator generatorFile="src/templates/your_template.mt" id="your_template_id" images="false" (true if your template needs images generation) metaModel="http://www.topcased.org/2.0/sysML" modelExtension="sysml" name="name_of_your_template" technologyType="Acceleo"> </docGenerator> </extension> 4 - Then you could export your plugin and install it into your platform. It will be available for sysml models. Hope it helps. Regards, Emilien [email protected] a écrit : Hi. If have sucessfully completed the generation of a Word document from my SysML model based on the excellent tutorial on the Topcased website. I now have the need to tweek the generator templates for GenDoc and was wondering if there are any documentation/tutorial on how to customize or create a plugin extension.I have tried altering some of the files in the Atos template jar, but I must be missing some details as the generator templates are only available in UML models not in SysML models. I hope you can help because this is a very usefull tool for me. Kind Regards Henrik Jensen _______________________________________________ Topcased-users mailing list [email protected] http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users --
|
_______________________________________________ Topcased-users mailing list [email protected] http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users

