Questions tagged [acceleo]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
35 views

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....
Kaly's user avatar
  • 51
0 votes
1 answer
19 views

Echap acceleo syntax element

I have an acceleo project in eclipse, and i want to generate with it an other acceleo file. The problems I encounter is that I can't manage to find how I can escape acceleo syntax element. For exemple,...
Kaly's user avatar
  • 51
0 votes
1 answer
21 views

Cannot drag and drop Annotation

i am working with eclipse modelling tool 2020, i did not change anything in the original IFML source but when i try to drag and drop Annotation, it cannot be instantiated inside other element, can ...
Heidi Renata Halim's user avatar
0 votes
0 answers
37 views

Eclipse too slow and unresponsive

i use EMF framework, Sirius, Acceleo for a new eclipse plugin me and my team mate is working on. The problem is, everytime i want to try and run the plugin we already developed, eclipse took way too ...
Heidi Renata Halim's user avatar
0 votes
2 answers
33 views

How to make mutable sequence in Acceleo?

So i have a sequence of Visualization Attribute called vizAttrs. This is what I actually want to do: [for (va: VisualizationAttribute | dataBinding2.eContents(VisualizationAttribute))] [vizAttrs = ...
alisha yumna's user avatar
0 votes
0 answers
25 views

Acceleo: can I build a template importing in the definition of a class another template I've generated?

For example, I create the template for generating a Food class and then I want to import such class in the template of an Apple class The example provided is trivial but it is just to understand how ...
Fabiana Iuliano's user avatar
0 votes
0 answers
13 views

How to add Visualization Attribute to Data Binding in Acceleo?

I want to add a Visualization Attribute element to a Data Binding in Acceleo / set the Visualization Attribute as a child to the Data Binding. But it seems like there is no method like add() from ...
alisha yumna's user avatar
0 votes
1 answer
58 views

I use Acceleo to create Java main method, but "[]" causes trouble because Acceleo redeems this as invocation

I am using Acceleo to create Java main method in my ".mtl", like this [template public generateElement(aMiniFamily : MiniFamily)] [comment @main/] [file ('CreateMiniFamily.java', false, 'UTF-...
xy3333's user avatar
  • 13
0 votes
1 answer
54 views

How can I create a services in Capella and call it in my M2DOC Word document?

How can I create a services in Capella and call it in my M2DOC Word document? I want, for example, create a services for print a functional tree, and use this code in many different documents without ...
SteSce's user avatar
  • 9
0 votes
0 answers
158 views

Running Acceleo from within Sirius

I am trying to run a simple Acceleo generation pragmatically from within a Java Services class of my Sirius Viewpoint Specification Project. I can run the Acceleo mtl from 'Run Configuration' and it ...
Aon Safdar's user avatar
0 votes
1 answer
93 views

Xtext to Acceleo

I have a xtext code for an expression like this: expr : RelExp ( {LogicExp.args+=current} op=LO args+=RelExp)* ; RelExp returns expr : ArithExp ( {RelExp.args+=...
ChakrabortyM's user avatar
0 votes
2 answers
219 views

Acceleo M2T (Cannot access to the my matamodele attributes , references .. )

I am developing a M2T generator in Acceleo (in Obeo Designer). I have created my metamodel based on *.ecore (pfe.ecore ) and then I have created an instance model in runtime (MyModels.pfe) using ...
Sarrah 's user avatar
0 votes
1 answer
95 views

Can I reference java.ecore in project.ecore without relative path? but use module references instead?

In our Project we are using Acceleo to generate Java code from our eCore Models. We have created a file called "java.ecore" which contains java standards that we are using (e.g. java.io.Closeable) ...
aminator's user avatar
  • 441
0 votes
1 answer
90 views

Impossible to delete blank line in generated word with template

I'm currently using m2doc for my Capella project and when I launch the generatio of the docuement with the template that I have created some lines in my tables are empty and they are not deleted. ...
marc.L's user avatar
  • 1
1 vote
0 answers
63 views

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 ...
user2962613's user avatar
0 votes
1 answer
123 views

How to query the root element from importURI?

I'm developing a DSL, and I'm using Xtext's importURI attibute to deal with imports. It is working fine in the editor, but I don't know how to query the root element of the resource from the ...
user11539866's user avatar
0 votes
1 answer
243 views

Problem with Java model to source code transformation

I have a problem with Java source code generation of Modisco java model. I used this guide below in Modisco Documentation : https://help.eclipse.org/2018-12/topic/org.eclipse.modisco.java.doc/...
Ali Sardarian's user avatar
2 votes
0 answers
70 views

An internal error occurred during: "Acceleo" on fresh install

After fresh Eclipse install (Windows 10, 64bit, JRE 1.8.0_181-b13) I installed Acceleo 3.7.7.201812041426. But after creating new project (2002/ecore with "Generate file" and "Main template") it ...
tJeyhun's user avatar
  • 195
0 votes
0 answers
87 views

Getting nodes of a Abstract Syntax Tree of Acceleo Query Language in java

I am want to calculate the number of nodes in a AST od a AQL expression. My code is as following. public static void aqlParser(String queryString ) { IQueryEnvironment queryEnvironment ...
sali333's user avatar
  • 125
1 vote
0 answers
146 views

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 ...
Lea A's user avatar
  • 1,541
3 votes
0 answers
406 views

Acceleo Builder error since eclipse 2018-12 update

since Eclipse update to 2018-12 I can't build any Acceleo project with Query. I use Acceleo 3.7.7 and update EMF to nigthly version to solves this issue : https://bugs.eclipse.org/bugs/show_bug....
flagadajones's user avatar
0 votes
0 answers
223 views

The problems occurs when I follow the Acceleo Getting Started guidance in the wiki to generate java code from uml

I spend several days to follow the Getting Started guidance in the wiki to generate java code from uml. I found some problems during the steps and failed to generate code. This is the link of the ...
Zhang's user avatar
  • 1
1 vote
2 answers
398 views

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's user avatar
  • 1,736
0 votes
2 answers
409 views

Acceleo - Reference to another model

I am facing a problem and I am kind of desesperate : I am trying to transform a constraint OCL into a C# program. To do so, I define my ocl constraints in a CompleteOCL document, and I save it as ...
Flora's user avatar
  • 1
1 vote
1 answer
1k views

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....
Davide's user avatar
  • 185
1 vote
2 answers
348 views

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 ...
Timo Rohrberg's user avatar
1 vote
1 answer
355 views

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

I want to model a class with a field of type Optional<String> but can't find a EOptional EType or equivalents options to maker the attribute optional.
Mahatma_Fatal_Error's user avatar
1 vote
1 answer
308 views

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 ...
fehrlich's user avatar
  • 2,507
0 votes
1 answer
130 views

Unable to get Requirement in Acceleo

Can not get the Requirement from the model. I have tried getAppliedStereotypes() but it still not works. The code is as the following: [comment encoding = UTF-8 /] [module maintest('http://www....
lucia's user avatar
  • 1
0 votes
1 answer
313 views

Fali to use getAppliedStereotype to get id and name of requirement

In Eclipse, Using Papyrus neon and Acceleo 3.7 for SysML 1.4 diagram, the getAppliedStereotype()returns null. The modules are [module generate('http://www.eclipse.org/uml2/5.0.0/UML', 'http://www....
lucia's user avatar
  • 1
0 votes
0 answers
800 views

Can't find main class in Maven generated project

I'm using Acceleo to create a maven project which creates a .jar app... I have a "generate.mtl" file, calling other .mtl files one of which is the following genPOM.mtl [comment encoding = UTF-8 /] [...
T. Kofidis's user avatar
1 vote
2 answers
342 views

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....
T. Kofidis's user avatar
0 votes
1 answer
176 views

Debug Acceleo mtl transformation

I have eclipse neon with Acceleo 3.7 and writing a simple example (the same as the one in Getting Started) but I cannot debug the transformation using the 'Acceleo Plug-in Application' configuration. ...
Anas Anis's user avatar
1 vote
1 answer
618 views

How to check SysML stereotypes with Acceleo?

I'm using Eclipse 4.6.3 (Neon.3) with Acceleo 3.6.6, Paprus 2.0.3 and Papyrus SysML 1.4 0.10.1. How can I check from an Acceleo MTL script, whether a class of my model has the SysML Block stereotype ...
display name's user avatar
0 votes
1 answer
895 views

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-...
makou's user avatar
  • 3
0 votes
1 answer
283 views

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 ...
Guillaume Dupont's user avatar
0 votes
1 answer
101 views

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's user avatar
2 votes
0 answers
295 views

Acceleo not resolving proxy when running standalone

I'm trying to perform a model-to-text transformation to html code using an IFML model. I have this mtl file: [comment encoding = UTF-8 /] [module main('http://www.omg.org/spec/IFML', 'http://www.omg....
aleberguer's user avatar
0 votes
1 answer
422 views

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. ...
any's user avatar
  • 335
0 votes
1 answer
249 views

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 ...
user avatar
1 vote
0 answers
86 views

Generate documentation from annotated Acceleo

As I'm currently doing research on model-based testing I often have write a lot of acceleo code. I'm currently at a point where I asked myself whether it is possible to generate automatically a ...
Sascha Kretzschmann's user avatar
2 votes
2 answers
1k views

How to set custom metamodel in Acceleo project?

I try to make generator from my custom metamodel. I created it by Obeo Designer - it is ecore metamodel. So I create new Acceleo Project, choose my metamodel URI (http://org/model/ros) from "Runtime ...
kuba44's user avatar
  • 1,838
0 votes
1 answer
345 views

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 ...
Geek's user avatar
  • 199
0 votes
1 answer
735 views

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 ...
Yasir's user avatar
  • 1
0 votes
1 answer
178 views

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....
Jose Ventura's user avatar
0 votes
2 answers
709 views

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 ...
Jose Ventura's user avatar
0 votes
1 answer
681 views

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....
leumas95's user avatar
  • 387
0 votes
2 answers
352 views

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,...
leumas95's user avatar
  • 387
0 votes
1 answer
420 views

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 ...
James Anderson's user avatar
0 votes
1 answer
501 views

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:-- <subvertex xmi:type="uml:State" xmi:id="{BB1999-E740-4e7d-...
James Anderson's user avatar