| EMF's Jet templates costumization [message #1060683] |
Mon, 27 May 2013 14:36  |
Amine BEN Messages: 3 Registered: January 2013 |
Junior Member |
|
|
Hi all,
I'm trying to costumize the EMF API generation of model code by adding a new file.
I created a new project where I copied the templates from *.codegen.ecore preserving the folder's hierarchy, then I changed the templates directory in the genmodel options to the one I just copied. In order to make sure that the generation process uses these templates I added some java comments to the templates. This worked just fine.
When adding a new jet template to the template's folder, and running the generation, a java class for this template is not generated in the JETemitter project.
How can I solve this problem
Thank you in advance
|
|
|
| Re: EMF's Jet templates costumization [message #1060761 is a reply to message #1060683] |
Tue, 28 May 2013 07:44  |
Ed Merks Messages: 24570 Registered: July 2009 |
Senior Member |
|
|
Amine,
You have to use generator adapters for that. Try installing the
Generator Adapter Example into your workspace for an example.
On 27/05/2013 8:36 PM, Amine BEN wrote:
> Hi all,
> I'm trying to costumize the EMF API generation of model code by adding
> a new file.
> I created a new project where I copied the templates from
> *.codegen.ecore preserving the folder's hierarchy, then I changed the
> templates directory in the genmodel options to the one I just copied.
> In order to make sure that the generation process uses these templates
> I added some java comments to the templates. This worked just fine.
>
> When adding a new jet template to the template's folder, and running
> the generation, a java class for this template is not generated in the
> JETemitter project.
>
> How can I solve this problem
> Thank you in advance
|
|
|
Powered by
FUDForum. Page generated in 0.02068 seconds