3. Goals of the tutorial
Beginners See a simple concrete case study
Acceleo addicts Discover new killing features
Android experts Learn enough to build a full fledged generator
8. A new code generation
language
Implementation
Metamodel and
of the Model To
templates based
Text OMG
technology
standard (MTL)
Tooling to help
Eclipse Modeling starting a new
/ M2T Project generator from
scratch
8
9. The Acceleo SDK
Acceleo
Development Tools
= +
Acceleo Runtime
(Compiler + Engine)
Eclipse independant: can be
run anywhere (plain old Jar,
9
OSGi, Eclipse...)
17. A little bit of syntax
Templates are better for generating text
and return a string
Queries can return any kind of objects
You can call Java services from a template or a query
The result of a query is stored in a cache. 17
18. The workflow file
ion
a nnotat
@main
The MTL file
calling the other
ones 18
19. Initialize the generation project
1. Create new
Acceleo project
2. Use the wizard
(update file paths)
3. Create a
workflow file 19
20. 3... 2... 1...
Anything
Launch Generated
that can
configuration Java Main
launch Java...
Same
Stand
VM as Standalone Standalone
alone
Eclipse
20
38. Packaging and deploying
Generate an Eclipse Add an action on
UI plugin right-click on models
Synchronize your
Create a builder
code and your model
38
39. Packaging settings
Filename pattern
of the model
Target folder of
the generation
Warning Eclipse specific
39
40. Workout
1. Create new
Acceleo UI project
2. Use the wizard
nd
3. Launch a 2
Eclipse Runtime
and test 40