Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Example Hello World - Acceleo - M2T(Acceleo - Indigo - M2T - Acceleo.txt)
Example Hello World - Acceleo - M2T [message #872752] Wed, 16 May 2012 18:46 Go to next message
Jose Texier is currently offline Jose TexierFriend
Messages: 5
Registered: May 2012
Junior Member
Hi,

I'm making an example "hello world" and I can not generate the file "Acceleo.txt". I get this error:
" The generation fail to generate any file because there are no model elements that matches at least the type of the first parameter of one of your main templates. The problem may be caused by a problem with the registration of your metamodel, please see the method named "registerPackages" in the Java launcher of your generator"

The example I'm doing this in Indigo Help - Acceleo Model To Text Transformation Language (MTL) > User Guide.


I think the problem is I have not registered the metamodel, but not how.

Thanks,
Jose
Re: Example Hello World - Acceleo - M2T [message #872772 is a reply to message #872752] Wed, 16 May 2012 19:42 Go to previous messageGo to next message
Jose Texier is currently offline Jose TexierFriend
Messages: 5
Registered: May 2012
Junior Member
Hello, you solve it. The problem was to place the correct metamodel in .mtl.

Now, I have the same problem when I have my own metamodel, not as a register to generate the transformation.

Thanks again,
Jose
Re: Example Hello World - Acceleo - M2T [message #872813 is a reply to message #872772] Wed, 16 May 2012 21:48 Go to previous messageGo to next message
Alain Lavoie is currently offline Alain LavoieFriend
Messages: 82
Registered: April 2012
Member
Jose Texier a écrit :
> Hello, you solve it. The problem was to place the correct metamodel in
> .mtl.
>
> Now, I have the same problem when I have my own metamodel, not as a
> register to generate the transformation.
>
Is this a closed issue, or another problem where you request assistance ?
Re: Example Hello World - Acceleo - M2T [message #873052 is a reply to message #872813] Thu, 17 May 2012 12:15 Go to previous message
Jose Texier is currently offline Jose TexierFriend
Messages: 5
Registered: May 2012
Junior Member
Hi, this is another problem where you request assistance?

So, I'll open another topic?

Thanks
Previous Topic:[Acceleo] How to change the editor colours
Next Topic:XML input to ecore
Goto Forum:
  


Current Time: Thu Apr 18 05:30:43 GMT 2024

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

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

Back to the top