| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <html> |
| <head> |
| <meta content="text/html; charset=windows-1252" http-equiv="content-type"> |
| <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 inside a text box in the slide. When the |
| the scrip is executed, the textboxes are considered ordered by the |
| position of its top-left position. Below there is a example of how to |
| display names of all packages, one in each slide.</p> |
| <table class="sample" width="650px"> |
| <tbody> |
| <tr class="heading"> |
| <td width="50%"> |
| <p><strong>Template content</strong></p> |
| </td> |
| <td width="50%"> |
| <p><strong>Generation output</strong></p> |
| </td> |
| </tr> |
| <tr valign="top"> |
| <td align="center"> |
| <table class="pptx" align="center" border="solid" width="90%"> |
| <tbody> |
| <tr height="140px" valign="top"> |
| <td> |
| <table class="pptx"> |
| <tbody> |
| <tr height="75"> |
| <td valign="top"><context |
| model='D:/
/myModel.uml'/><br> |
| <gendoc></td> |
| </tr> |
| <tr> |
| <td height="">[for (p:Package | |
| Package.allInstances())]</td> |
| </tr> |
| </tbody> |
| </table> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <br> |
| <table class="pptx" align="center" border="solid" width="90%"> |
| <tbody> |
| <tr height="140px" valign="top"> |
| <td> |
| <table width="90%"> |
| <tbody> |
| <tr> |
| <td> |
| <ul> |
| <li> [p.name/]</li> |
| </ul> |
| </td> |
| </tr> |
| <tr height="40"> |
| <td>[/for]<br> |
| </gendoc></td> |
| </tr> |
| </tbody> |
| </table> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </td> |
| <td> |
| <table class="pptx" align="center" border="solid" width="90%"> |
| <tbody> |
| <tr height="140px" valign="top"> |
| <td> |
| <table width="100%"> |
| <tbody> |
| <tr height="80"> |
| <td> <br> |
| </td> |
| </tr> |
| <tr height="30"> |
| <td> <br> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <br> |
| <table class="pptx" align="center" border="solid" width="90%"> |
| <tbody> |
| <tr height="140px" valign="top"> |
| <td> |
| <table width="100%"> |
| <tbody> |
| <tr> |
| <td> |
| <ul> |
| <li> Package 1</li> |
| </ul> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| ...<br> |
| <table class="pptx" align="center" border="solid" width="90%"> |
| <tbody> |
| <tr height="140px" valign="top"> |
| <td> |
| <table width="100%"> |
| <tbody> |
| <tr> |
| <td> |
| <ul> |
| <li> Package n</li> |
| </ul> |
| </td> |
| </tr> |
| <tr height="40"> |
| <td></td> |
| </tr> |
| </tbody> |
| </table> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </body> |
| </html> |