Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Solved - Thanks] Java Code generation with Acceleo from KDM model(Java Code generation with Acceleo)
[Solved - Thanks] Java Code generation with Acceleo from KDM model [message #1196585] Tue, 19 November 2013 13:43
E. BarNa is currently offline E. BarNaFriend
Messages: 3
Registered: November 2013
Junior Member
Good morning.
I'm trying to generate, through Acceleo, Java code from a model from a Java class that I discovered with MoDisco.
I select in Acceleo the URI's 'http://www.eclipse.org/MoDisco/Java/Composition/0.1.incubation/javaApplication'
'http://www.eclipse.org/MoDisco/Java/0.2.incubation/java'
'http://www.eclipse.org/emf/2002/Ecore'

The Acceleo template begins in the class JavaApplication ([template public generateElement(aJavaApp : JavaApplication)]) and I going down the model tree to reach BodyDeclaration class.

From then not let me go down to access MethodDeclaration class.

The sequence of classes that follow is:

JavaApp.javaModel.compilationUnits.types.BodyDeclarations

How I can access the class Block or MethodDeclaration from BodyDeclaration?

Where I can get a good manual Acceleo and templates that I set an example?

Thank you very much for your answer.
Sorry for the wording, is a translation of google translator. Smile

[Updated on: Fri, 22 November 2013 07:39]

Report message to a moderator

Previous Topic:[Xpand] generate code from very large models
Next Topic:[Acceleo] MTL Metamodel
Goto Forum:
  


Current Time: Fri Apr 19 09:53:48 GMT 2024

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

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

Back to the top