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.
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.
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.
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.
The english guides, tutorials and documentation have been updated and corrected.
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.
The following bug has been fixed:
|308139||eAllContents("Type") returns a wrong result when the metamodel has multiple inheritance|
|307391||Syntax error when you use parenthesis with RequestService [ ]|
|308032||The call to the "args" service modify the value of the argument|
|307328||The JAR Custom Action makes error|
|306476||Reflective Editor : Ctrl+A Ctrl+C is not working on generated text|
|307408||Acceleo cannot resolve call to EObject typed scripts on UML modelElements|
|306891||Change the icons and the images of the wizards|
|307550||ClassCastException when no category provided in module launcher's plugin.xml|
|307383||Unexpected result from XPath preceding() service|
|307296||[2.1.0] SAXParseExceptions in Help|
|307309||Unresolved call while using a service that has a Collection parameter|
|307339||Java heap space exception with many Java services in an Acceleo project|
|307375||probléme sur atribut length|