Acceleo 2.2.0 - New and Noteworthy
As planned the eagerly awaited Acceleo 2.2.0 has been released. This version brings many changes in the editors, may now be localized and support specific encodings in the generation templates.
You may have a look on the Acceleo 2.0.0 and Acceleo 2.1.0 new and noteworthy pages.
Plugins localization
The Acceleo core plugins are now using the localization features of Eclipse. That means it is now possible to translate Acceleo for a given language.
Only the french localization has been done yet, do not hesitate to contact the team if you want to translate Acceleo for your own dialect !
![]() |
Syntax highlighting enhancements
A debate about the template editor colors took place on thedevelopment mailling-list . After a vote the decision has been taken to change them in order to improve the readability of the templates.
![]() |
![]() |
Template editor
The template editor has a few more editing assists : auto-completion on template header and block matching higlighting.
![]() |
![]() |
Template encoding support
Acceleo is now able to load a template using a specific encoding. That means you’ll never have troubles anymore working with special characters in templates and using them with different operating systems. Previously Acceleo was only using the current JVM encoding so any template with “é”, or “à” created on Windows would not work on Linux or Mac.
Beware, it is, most of the time, a bad idea not to use ASCII for template but sometime you don't have choice. For instance the following template uses utf-8:
![]() |
This one ISO-8859-1 :
![]() |
And the last one, in ASCII, import the previous ones:
![]() |
The generated text uses the JVM-specified encoding, then for the following result, everything has been encoded in UTF-8 .
![]() |
Of course the encoding specification is optional and using a wrong one fire an error.
![]() |
Generic script
Another feature is support for the EObject type. EObject is the common object of every EMF based model, it’s a kind of java.lang.Object but for model elements, sometimes it is usefull to define a template on any kind of type.
It’s now possible, with any metamodel you will be able to define templates on the EObject type which mean you’ll be able to call this template on any object.
![]() |
Updated documentations
The english guides, tutorials and documentation have been updated and corrected.
JEE Module
PHP Module
Ecore2Python Module
WISS Module
Export a generator module to an EMF model
First step toward Acceleo 3.0, this release provides a generator module export to an EMF model you may then re-use as a basis for a generator.
![]() |
Bugfixes
The following bug has been fixed: