Wiki source code of Using Custom EOGenerator Templates
Version 7.1 by David Avendasora on 2011/05/24 14:22
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | 1. Add your custom EOGenerator Templates to your project by creating a new Folder in the root of your project and putting your custom templates in it. Name it something descriptive like "EOGenerator" or "EOGenTemplates" | ||
2 | 1. Open the .eogen file you want to use the custom templates and in the section marked titled "Templates" change the values for: | ||
3 | 11. **Template Folder** the folder you just created | ||
4 | 11. **Template** the template file that will create the EntityName.java file | ||
5 | 11. **Subclass Template** the template file that will create the EntityName.java file. | ||
6 | [[image:Picture 1.png||border="1"]] | ||
7 | 1. Save and close the .eogen file | ||
8 | 1. Right-Click your .eogen file and select **EOGenerate...** to get freshly generated classes | ||
9 | [[image:Picture 2.png||border="1"]] | ||
10 | |||
11 | {{tip title="Auto Generate on Build"}} | ||
12 | You can tell WOLips to automatically trigger the EOGenerator to run the generation process every time the incremental builder is kicked off by turning on this preference in Eclipse \-> Preferences \-> WOLips \-> Build \-> Automatically Run EOGenerator | ||
13 | |||
14 | {{/tip}} |