Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 182077e62dab4a5811da48462fddba97166725b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
«IMPORT org::eclipse::papyrus::common::editor::xtext::umlCommon»

«EXTENSION templates::Extensions»

«DEFINE main FOR Greeting-»
«FILE name+".txt"-»
This is an example of a generated file.

The input element was "Hello «name»!"

All greetings in the same file:
«FOREACH ((Model)eContainer()).sortedGreetings() AS g SEPARATOR ', '»«g.name»«ENDFOREACH»
«ENDFILE-»
«ENDDEFINE»

Back to the top