Questions tagged [acceleo]

Acceleo is a code generator transforming models into code (MDA approach). See "about the Acceleo tag" for initial help.

Acceleo is a code generator transforming models into code (following the Model-Driven Approach). It is part of the Eclipse foundation, and distributed as part of its annual release train since Eclipse Ganymede (version 3.4).

All of the Acceleo documentation can be found on the Eclipse Help Center.

156 questions
0
votes
1 answer

How to add a new metamodel to Acceleo

I would like to use Acceleo to tranform Owl files to java classes. However I do not see the uri for the Owl metamodel in Acceleo. How does one add a new metamodel template specification to Acceleo? Thanks
Magick
  • 4,603
  • 22
  • 66
  • 103
0
votes
1 answer

How to use generator arguments in my template?

The 3rd parameter of the generator is a list of arguments. The documentations says: If the template which will be called requires more than one argument taken from the model, pass them here. But how to use this arguments in my template? How to…
Ralph Bergmann
  • 3,015
  • 4
  • 30
  • 61
0
votes
2 answers

Acceleo: using custom UML Profile as metamodal, and its stereotypes in templates?

I'm new to Acceleo. I use IBM RSA (8.5.1). I created a custom UML Profile (with a few stereotypes extending default metaclasses, it's pretty usual). The UML profile is a .epx file. In addition, I created a simple model on which I applied my custom…
Markov
  • 1
  • 1
0
votes
1 answer

Acceleo Incremental generation on same file

How can I execute the same module more that once but keep the previous generated code file? A short explanation is that I have a main module that calles other modules. generate.mtl [comment encoding = UTF-8 /] [module…
GeorgesC
  • 145
  • 4
  • 15
0
votes
1 answer

Acceleo issue on documentation

I'm tring to generate html documentation by uml and all works fine. My issue is that I would enclose all report in: //report How can I do this? This is my acceleo report template that I would…
Stefano Maglione
  • 3,946
  • 11
  • 49
  • 96
0
votes
1 answer

How to specify the classpath to the acceleoCompiler ant task to compile mtl files

I'm trying to compile Acceleo mtl files using an Ant task: ...... Running Acceleo mtl=emtl file compilation
mivola
  • 439
  • 6
  • 9
0
votes
1 answer

Android app using Acceleo

I am trying to create an android app using acceleo using model driven approach. I could create a model with some help from acceleo guide. And I could even generate the model code, Edit code and Editor code. As explained in this link. But later after…
s2s
  • 33
  • 1
  • 6
0
votes
1 answer

How do I get abstract methods from my superclass in the mtl language

I'm using Acceleo-MTL to generate Java classes. How do I get all my abstract methods from my abstract superclass? To get simple operations and interfaces, I use this: [comment]Operators[/comment] [for (o : Operation |…
0
votes
2 answers

Domain model in EMF - can I produce POJOs using Acceleo?

I have a domain model that is created using ecore EMF. And I would like to generate POJOs. I would like to be able customize the POJOs, so I am looking at using Acceleo. However, I can only see creating POJOs in Acceleo from UML. When using EMF it…
Magick
  • 4,603
  • 22
  • 66
  • 103
0
votes
1 answer

Intgrating acceleo with jboss errai and gwt

I have to create a project in jboss errai with GWT but I want to generate must of my model code using acceleo using eclipse modeling framework .ecore model. I have done this things. created maven project using command mvn archetype:generate…
Brijesh
  • 1
  • 3
0
votes
1 answer

Accessing public elements from other modules

I'm new to Acceleo, but I understand that modules have both private and public elements which can be accessed by other modules (via extending / importing those modules). In my case I have [module generate('my_model_URI')/] [import…
Karl Barker
  • 11,095
  • 3
  • 21
  • 26
0
votes
1 answer

ACCELEO: creating file in path depending on the model structure

In an Acceleo Model to Text transformation I would like to create a file for a UML class coherent with the packages of containing the class (the class namespace in the UML model). The problem I am facing is that I have to do that in line as the…
Andrea Sindico
  • 7,358
  • 6
  • 47
  • 84
0
votes
2 answers

Executing acceleo project with maven

In my project i am executing the acceleo project from eclipse by using the plugin. I have generate.mtl and generate.java. The execution is done by using the run as configuration and choosing the acceleo application. THis configuration takes as an…
user1495959
  • 43
  • 1
  • 5
0
votes
1 answer

How can I protect my methods bodies (not the attached JavaDoc and Signature) using Acceleo code-generator

I use Acceleo in order to generate code with a model I have made. I managed to protect my methods in order to protect them usinig "@generated NOT" in case I need to regenerate my code with Acceleo. The problem is that adding @generated NOT protect…
Baptiste Gousset
  • 251
  • 2
  • 16
0
votes
2 answers

How to do Acceleo code generation on in-memory model?

I am trying to generate some code using Acceleo. I am constructing my model entity in-memory and I want to generate the code for it. Now, when Acceleo tries to match my model object to the argument type of my template function, it does not match.…
parasietje
  • 1,529
  • 8
  • 36
1 2 3
10
11