blob: 20e69ad1bb87c7685e3f3d70a41b2a1b8358b1c3 [file] [log] [blame]
<!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>
&nbsp;[p.name/]<br>
[/for]</p>
</div>
<p>The script is is written inside a text box in the slide.&nbsp;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">&lt;context
model='D:/…/myModel.uml'/&gt;<br>
&lt;gendoc&gt;</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>&nbsp;&nbsp;[p.name/]</li>
</ul>
</td>
</tr>
<tr height="40">
<td>[/for]<br>
&lt;/gendoc&gt;</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>&nbsp;&nbsp;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>&nbsp;&nbsp;Package n</li>
</ul>
</td>
</tr>
<tr height="40">
<td></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</body>
</html>