Provide Comments behind a Requirement [message #1764129] |
Thu, 25 May 2017 10:42  |
Eclipse User |
|
|
|
Hi,
I have tried to seach at the internet but i didn't find how to export a comment behind a Eclipse Papyrus requirements:
For exporting of a full list of the requirements in my Model i use this script:
<context model='${model}' importedBundles='commons;gmf;papyrus' searchMetamodels='true'/>
<gendoc>
[for (re:Requirement | Requirement.allInstances())]<drop/>
1. [re. base_Class.name/]
• Modellpfad : [re.base_Class.qualifiedName/]
• Id : [re.id/]
• Text :
[re.text /]
•
[/for]<drop/>
</gendoc>
I tried to use the self.displaycomments with the Fragment:
<fragment name='displayComment'> <drop/>
<arg name='e' type='uml::Element'/> <drop/>
[for (description : String | e.eContents()->filter(uml::Comment)->select(c |c.annotatedElement->includes(e))._body.splitNewLine())][description.clean()/]
[/for] <drop/>
</fragment> <drop/>
But uml::Element or uml::Requirement is not working.
Did you have a solution here?
Thanks
Marcek
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05439 seconds