Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] The generated code contains only the name of the first class(The generated code is empty)
[Acceleo] The generated code contains only the name of the first class [message #848384] Wed, 18 April 2012 07:10 Go to next message
DJAFER Missing name is currently offline DJAFER Missing nameFriend
Messages: 5
Registered: January 2012
Location: France
Junior Member
Hi everyone,
I want to generate a java code for java models (written in xmi) with Acceleo, but the generated code contains only the name of the first class in the model (package);
this is my acceleo template :
[comment encoding = UTF-8/]
[module generateModeles('/projet/MetaModeles/JAVAdiagram.ecore')/]
[template public generateModeles(p : Package)]
[file('JeTeste.java', false, 'UTF-8')]
Salut tout le monde !
[/file]
[/template]
--------------------------------
and this is a part of my java model :
<javadiagram:Package ... xmlns:javadiagram="platform:/resource/projet/MetaModels/javadiagram.ecore" name="ATNdiagramme">
<classes name="Transition1">
<methods name="SetName" parameters="//@classes.0"/>
</classes>
.....
--------------------------------
Best regards.

[Updated on: Wed, 18 April 2012 07:11]

Report message to a moderator

Re: [Acceleo] The generated code contains only the name of the first class [message #848507 is a reply to message #848384] Wed, 18 April 2012 09:40 Go to previous message
DJAFER Missing name is currently offline DJAFER Missing nameFriend
Messages: 5
Registered: January 2012
Location: France
Junior Member
I solved my problem !!! I ran the wrong template ^_^
Previous Topic:[Acceleo] - change file access rights from within Acceleo
Next Topic:Using Drop keyword in Refining mode
Goto Forum:
  


Current Time: Thu Dec 18 21:51:46 GMT 2014

Powered by FUDForum. Page generated in 0.01507 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software