| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <html> |
| <head> |
| <title>Script language</title> |
| <link rel="stylesheet" type="text/css" href="userguide.css"> |
| </head> |
| |
| <body> |
| <h2>Script language</h2> |
| <p>The content of a gendoc tag corresponds to a script written in <a href="http://www.eclipse.org/acceleo">Acceleo</a> language.</p> |
| <p>Acceleo syntax to display names of all packages</p> |
| <div class="codeBox cbBg"> |
| <p><u>Example</u>: display names of all packages</p> |
| <p class="code"> |
| [for (p:Package | Package.allInstances())]<br/> |
|  [p.name/]<br/> |
| [/for]</p> |
| </div> |
| |
| <p>The script is is written directly in the sheet cells. When the the |
| scrip is executed, rows and cells will be added or removed. Below there |
| is a exampl of how to display names of all packages, one per row.</p> |
| <table class="xlsx"> |
| <tr> |
| <th></th> |
| <th>A</th> |
| <th width="40">B</th> |
| </tr> |
| <tr> |
| <th>1</th> |
| <td> |
| <context model='D:/…/myModel.uml'/><br/> |
| </td> |
| <td width="40"/> |
| </tr> |
| <tr> |
| <th>2</th> |
| <td> |
| <gendoc></br> |
|  [for (p:Package | Package.allInstances())] |
| </td> |
| <td/> |
| </tr> |
| <tr> |
| <th>3</th> |
| <td> |
|   [p.name/]<br/> |
| </td> |
| <td/> |
| </tr> |
| <tr> |
| <th>4</th> |
| <td> |
|  [/for]<br/> |
| </gendoc> |
| </td> |
| <td/> |
| </tr> |
| </table> |
| </body> |
| </html> |