Customizing Codegen TemplatesThe Cairngorm distribution now contains resources that are used by the Cairngorm Plugin, namely the following codegen templates that are under resources/flexbuilder/templates:
The codegen uses JET (Java Emitter Templates), which is part of the EMF (Eclipse Modeling Framework). The Cairngorm Plugin locates the templates through the project's association to a Cairngorm location. It reads the config file (resources/flexbuilder/cairngorm.xml) to get the template to use. If you want to change the style of the generated code you can modify the existing templates, or preferably create new ones and update cairngorm.xml. The format used by JET is very similar to the JSP (Java Server Pages) syntax. If you are interested in learning more about JET please refer to the following tutorials:
|