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 14:46 Go to next message
Jose Texier is currently offline Jose Texier
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 15:42 Go to previous messageGo to next message
Jose Texier is currently offline Jose Texier
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 17:48 Go to previous messageGo to next message
Alain Lavoie is currently offline Alain Lavoie
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 08:15 Go to previous message
Jose Texier is currently offline Jose Texier
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: Sat Aug 23 03:31:53 EDT 2014

Powered by FUDForum. Page generated in 0.01688 seconds