Hello Franz, To get the documentation on an element, you can use method 'getDocumentation()' from « topcased » externalBundle. To get the list of current requirements associated to an element, it is method 'getRequirementList(EObject)', from « requirement » external Bundle.
The following template part displays the documentation on the element and on the first diagram located under this element, and for all elements contained in the diagram their name, documentation and requirements. <gendoc><drop/> Documentation on element : [clean(self.getDocumentation())/] Documentation on diagram : [clean(self.getFirstDiagram().getDocumentation())/] Elements in diagram : [for (e:NamedElement|getElementsInDiagram(self.getFirstDiagram())->filter(NamedElement))] § [e.name.clean()/] : Documentation: <dropEmpty>[e.getDocumentation().clean()/]</dropEmpty> [for (r:CurrentRequirement|e.getRequirementList())]<drop/> [self.identifier/] : [clean(self.shortDescription)/] [for (a:TextAttribute|r.attribute)]<drop/> - [a.name.clean()/] : [a.value.clean()/] [/for]<drop/> [/for] <drop/> [/for] <drop/> </gendoc><drop/> Best regards, Anne De : [email protected] [mailto:[email protected]] De la part de Topcased user list where issues are discussed Envoyé : jeudi 19 mai 2011 08:49 À : [email protected] Objet : [Topcased-users] Problem using gendoc2 with Topcased 4.2.1 Hello Topcased experts, my name is Franz Schöttl and I am working at the EADS company Eurocopter in Ottobrunn. I am working with the Topcased version 4.2.1 under Eclipse 3.6. I generated some UML diagrams like use case and activity diagrams and added a documentation of the UML models and some current requirements. Now I dry to generate a documentation (utilizing gendoc2) of my models including the documentation of the diagrams and its associated current requirements. For now, I am able to generate a document containing the diagrams and, since yesterday, the name of the diagrams. But I am not able to generate the documentation and the generated current requirements. I think it should work, but don't know how. I would like to ask you, which gendoc2 commands shall I use to get the documentation and the list of current requirements I added. Many thanks to you and have a nice day Best regards Franz Schöttl ------------------------------------------------------------------------------- Franz Schöttl(Fa. ESG) System Support Center Tiger/NH90 - Eurocopter Group ESPGZWS- Specification Team Phone : +49 (0) 89 6000 6848 E-mail: [email protected]<mailto:[email protected]> EUROCOPTER DEUTSCHLAND GmbH Sitz der Gesellschaft / Registered Office: Donauwörth Registergericht / Registration Court: Amtsgericht Augsburg HRB 16508 Vorsitzender des Aufsichtsrates / Chairman of the Supervisory Board: Dr. Lutz Bertling Geschäftsführung / Board of Management: Dr. Wolfgang Schoder, Vorsitzender / CEO; Friedrich-Wilhelm Hormel; Ralf Barnscheidt CONFIDENTIALITY NOTICE This communication and the information it contains is intended for the addressee ( s ) named above and for no other persons or organizations. It is confidential and may be legally privileged and protected by law. The unauthorized use, copying or disclosure of this communication or any part of it is prohibited and may be unlawful. If you have received this communication in error, kindly notify us by return e-mail and discard and/or delete the communication. Thank you very much. It is possible for e-mails to be intercepted or affected by viruses. Whilst we maintain virus checks on our e-mails, we accept no liability for viruses or other material which might be introduced with this message. ________________________________ Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d'un virus transmis. This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.
_______________________________________________ Topcased-users mailing list [email protected] http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users
