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
1
vote
2 answers

UI Acceleo Launcher Project doesn't work

I've followed this simple tutorial wiki.eclipse.org/Acceleo/Getting_Started my aim is creating an UI launcher... However when I finish and a click on 'Acceleo Model to Text'>'generate' the folder 'src-gen' remains empty!! On Error Log View this…
acquigio
  • 11
  • 1
1
vote
1 answer

Ant Builder Build Failed eINSTANCE

Trying to use AcceleoCompiler with an Ant Builder. When i build with ant i get the following error: compile: [acceleoCompiler] eINSTANCE BUILD FAILED C:\Users\random\workspace\foo\bar\Framework\buildstandalone.xml:52: eINSTANCE Here is how i have…
prolink007
  • 33,872
  • 24
  • 117
  • 185
1
vote
1 answer

Using Acceleo 3 with Ant

I'm looking for information on how to perform Acceleo source generation with an Ant script. I've done some Googleing, but I haven't really found any straightforward way to do that. I'm looking first to do it in Eclipse, but a headless (is that the…
Dave
  • 4,050
  • 6
  • 30
  • 35
1
vote
1 answer

Use UML2 4.0.0 metamodel in Acceleo

I need to use on acceleo UML2 4.0.0 as metamodel for my source model. Unfortunatelly, launching the acceleo code raise this error : Exception in thread "main" org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException:…
Kaly
  • 51
  • 3
1
vote
1 answer

Annotating templates (ModuleElements) in Acceleo

I was wondering if I can easily annotate Acceleo templates and then get these annotations when working with TraceabilityModel. Acceleo is now using an annotation to determine entry points for generation: [comment @main] So I am asking, if I can use…
MacJariel
  • 55
  • 6
1
vote
0 answers

AcceleoCompiler Deprecated

New versions of Acceleo deprecated the AcceleoCompiler without any mention of substitute class to use. Is ANT not being supported anymore to compile Acceleo? What is the alternative way to compile outside of Eclipse?
1
vote
1 answer

UI Acceleo Launcher Project fails

I've followed this simple tutorial http://wiki.eclipse.org/Acceleo/Getting_Started to create an UI launcher...but when I finish and I make a right click on my uml model, I don't have the acceleo tag "Acceleo Model to Tex", so I'm unable to run the…
marco
  • 295
  • 3
  • 13
1
vote
0 answers

Acceleo Compiler (.mtl to .emtl) for version 3.7.x

I'm trying to search for the alternative approach to compile Acceleo to generate .emtl from .mtl file using Acceleo Parser version 3.7.x outside eclipse but had not luck. AcceleoCompiler(Helper) which we are currently using is already deprecated…
Lea A
  • 1,511
  • 2
  • 10
  • 9
1
vote
2 answers

OCL group by element attribute

In Acceleo I have an OrderedSet of objects, where each object has a string as attribute. I want to get a container(e.g. OrderedSet) of those strings, where each string is unique.
Borstenhorst
  • 1,716
  • 2
  • 13
  • 11
1
vote
1 answer

how to call Acceleo Generator (file.mtl) From Java Class without getting a java.io.IOException: 'generate.emtl' not found

I have created a Java Project using Eclipse. Inside it I have create a package (named generators) and I have moved inside it my generate.mtl file and Generate.java class. After it I've created a java class and i try to call the method doGenerate()…
By-tor
  • 111
  • 1
  • 5
1
vote
1 answer

Acceleo Trasformation - Package with uri '*' not found.

When I try do to an acceleo trasformation I get this error: Exception in thread "main" org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri…
Davide
  • 185
  • 3
  • 22
1
vote
2 answers

Debugging Acceleo M2T Transformation within MTL file

I'm currently setting up an Acceleo project to generate Java source code from an Eclipse UML2 model. I do have experiences with the Xtend code generator, but not with the Acceleo one. However, I wanted to try Acceleo as an alternative to…
Timo Rohrberg
  • 51
  • 1
  • 4
1
vote
1 answer

How to model/generate Java 8 Optional attributes with Eclipse EMF

I want to model a class with a field of type Optional but can't find a EOptional EType or equivalents options to maker the attribute optional.
Mahatma_Fatal_Error
  • 720
  • 1
  • 10
  • 26
1
vote
1 answer

overwrite or extend a template in an Acceleo template

I have 3 template for example:- main, genA, genB The genB module is a specification for genA and supposed to overwrite one template bar. The problem is, that if you call the overwritten template within genA it is not the template specified in…
fehrlich
  • 2,497
  • 2
  • 26
  • 44
1
vote
2 answers

Acceleo file tags

I'm new to Acceleo and I'm trying to figure out some things about the file tags I can use. The format I see most commonly is something like that: [file (someElement.anotherElement.concat('SomeText.java'), false, 'UTF-8')] 1st Question: How can I…
T. Kofidis
  • 57
  • 6
1 2
3
10 11