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

Acceleo: The generation failed to generate any file

First of all , I am new to Acceleo and the modeling features of eclipse. What I am trying to do is just to create a simple test file. So for starters, I created a main module: comment encoding = UTF-8 /] [module…
makou
  • 3
  • 5
0
votes
1 answer

Cannot retrieve stereotypes from UML model generated using Papyrus with Acceleo

I am currently testing out the DSL capabilities of Papyrus in combination with Acceleo and I am currently encountering a problem. I created a simple relational database metamodel using UML 2 profiles with Papyrus. I then created a gruesome library…
0
votes
1 answer

Generate react native code from sirius

Good evening , I want to generate react native code from the sirius but I do not know how and is it possible to use acceleo for that ?? Thanks for helping me .
Senoussaoui Ikram
  • 197
  • 1
  • 1
  • 9
0
votes
1 answer

UML metamodel not found in createing Acceleo project

I am new in Acceleo. I use eclipse Mars. I want to getting start and learn with this link. when I want to create a new project and click add in the field of Metamodel URIs I didn't find UML Metamodel. what can I do?
any
  • 325
  • 5
  • 17
0
votes
1 answer

Acceleo UI doesn't generate any files

I have a GMF editor and an Acceleo UI project that I would like to bundle in a single plugin. That's not the matter though. You see, when executed in the runtime (Run as > Eclipse Application), both the GMF editor and the Acceleo UI project work…
user2418596
0
votes
1 answer

How do I compare the value of the current and the previous iteration in a for loop in Acceleo?

Is it possible to compare the value of the current and the previous iteration in a for loop in Acceleo? Knowing that LET can be defined inside for loop but it will be mutable at each current iteration, therefore the previous value will be lost and…
Geek
  • 189
  • 3
  • 13
0
votes
1 answer

Cannot Access SysML stereotypes and their properties in Acceleo

I am developing a M2T generator in Acceleo (in Eclipse). The model is basically a UML model with SysML profile created in Papyrus. It includes Blocks and FlowPorts. I have to access these stereotypes but it seems that I cannot retrieve any SysML…
Yasir
  • 1
  • 2
0
votes
1 answer

Acceleo. One of the parameters' class couldn't be loaded for method

When I invoke a java service with input string parameter I obtain the error One of the parameters' class couldn't be loaded for method returnString(String) of class es.bancopopular.easy.toFast.varPosition.Sum.. Another method in this java service…
0
votes
2 answers

Acceleo. Indent strategies

I'm testing Acceleo for a project to generate source cobol code. In this languaje the indentation is very important. I've found a guide to indent strategies, but I think is outdated because it have references to indentSpace and indentTab and I…
0
votes
1 answer

Acceleo Undefined "Let" expression

I am getting the error: Acceleo Evaluation Exception: Undefined "Let" expression at line .. in Module ... for block ... Here is my template: [comment encoding = UTF-8 /] [module generate('http://www.eclipse.org/emf/2002/Ecore',…
leumas95
  • 377
  • 8
  • 22
0
votes
2 answers

Dynamic Acceleo Project Plugin

I want to run an Acceleo Project from an Installed Plugin, i.e. I have written a plugin that uses Acceleo and I want it to run an Acceleo template from a project that is in the workspace. Currently, I have an Acceleo project which I run from my…
leumas95
  • 377
  • 8
  • 22
0
votes
1 answer

Which versions are required to get a working Acceleo Maven build

Has anyone got the Acceleo Maven build to work? If so what combination of Maven, Tycho, Eclipse, Acceleo, UML2/ecore worked for you? And as a supplementary question do you still need to adjust the Java classes and config files before running the…
James Anderson
  • 27,109
  • 7
  • 50
  • 78
0
votes
1 answer

How do I get "xmi:type" value

I am trying to generate a java program to implement a State Machine from a UML model using Acceleo. In my model I have entries like:-- I want to…
James Anderson
  • 27,109
  • 7
  • 50
  • 78
0
votes
1 answer

Acceleo Collection of Collections

I have defined this query [query public genCascadePath(aCSharpResourceModel : CSharpResourceModel) : Sequence(Sequence(CSharpResourceModel)) = aCSharpResourceModel.hasRelatedCSharpRMManager->collect(rmm |…
odyd
  • 194
  • 1
  • 2
  • 13
0
votes
0 answers

How to break for loop in Acceleo template

Can someone help me with loop of for in Acceleo template mtl. [for (it:attributeClass|amodelClass.classHasAttribute)] [for (it2:attributeClass|amodelClass.classHasAttribute)] [if (it.attributeName.endsWith(it2.attributeName))] [else] if…