Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [ACCELEO] new metamodel(add new metamodel and use it)
[ACCELEO] new metamodel [message #668792] Sat, 07 May 2011 14:13
radwane  is currently offline radwane Friend
Messages: 27
Registered: April 2011
Junior Member
this is my file generator.mtl

[comment encoding = UTF-8 /]
[module generate('')/]
[template public generate(aClass : Class)]
[file ('.java'), false)]
public class [] {
[for (p: Property | aClass.attribute) separator('\n')]
private [] [];

[for (p: Property | aClass.attribute) separator('\n')]
public [] get[]() {
return this.[];

[for (o: Operation | aClass.ownedOperation) separator('\n')]
public [] []() {
// TODO should be implemented

its ok if i choise input file .uml
but if i want to use my model .xmi i must change this ligne
[module generate('')/]
but i dont know what i must write ?
Previous Topic:[ACCELEO] new metamodel
Next Topic:[ACCELEO] imput model type????
Goto Forum:

Current Time: Tue Dec 01 22:14:05 GMT 2015

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

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