This feature makes possible to extract elements you desire in a diagram.
This example will generate a part of the UML Metamodel documentation.
The diagram realized with MDT Papyrus is presented bellow:
This diagram displays some information about Events, Activity Nodes and Operations. For the documentation we only want to display the elements linked to the Signal Event and the Call Event meta classes.
This is now possible using new methods in TOPCASED and GMF bundles.
This is the code to use in your gendoc2 template :
- The diagram is get using getPapyrusDiagrams() method
- A list of visibleElements is computed using a focused class (SignalEvent or Call Event)
- [let visibleElements : Set(uml::Class) = Set{focus}->union(focus.superClass)->union(focus.superClass->closure(superClass)->union(focus.getAssociations().memberEnd->select(type <> focus).type->asSet()))]
- The list of visible elements is used by the getDiagram method
- Finally the elements visible in the diagram are listed and for each element the documentation is displayed
gendoc2
RépondreSupprimerI can t convert for document word the javadoc tag comment content inside
i use richText but that do nothing, if use without, the document docx generated is corrupted.
[v.ownedComment->asSequence()->first()._body]
i don t want use documentation, that give double work for generate document and javadoc but tag html make trouble with illegal caracter like
inside javadoc comment.
if you can do a log before docx generation, it would be nice, because when the docx is corrupt, it is hard to find the error and waste much time.
Thanks for solution
Can you send an example of the content to see what is contained in the body field ?
SupprimerRegards
in docx
Supprimersample in docx unloadable
....create from source xxx< br />action date are form current system date< /w:t >
uml file, javadoc tag, body part
.... create from source xxx<br />action date are form current system date ....
tag html seem not supported by blog,i must insert space