| | | | Version: 1.0.2 Support Eclipse Version: 3.2 License: Free LGPL Development Status: Beta Company:
| |  | Home Page |  | Plugin Support |  | Discussion Forum | |
|
Akrogen is code generation Eclipse Plugin (version 3.2.*) oriented components.
With Akrogen you can describe your Eclipse Wizards pages with XML/XUL which are linked to a template which is able to generate your components (Service, DAO, JSP, HTML...).
The code generation of component is the result of the merge of a template (which can be written in Freemarker, Velocity, XSLT) with parameters, XML document, JAVA class model.
With Akrogen you can create easily your own catalog of components to generate. Here the Akrogen concepts :
* Wizard page/XML component : a component is generated with Eclipse Wizard page which display template parameters. The Wizard page has following characteristics :
o static XUL : the Wizard page is written in XML/XUL with a XML component. XUL fields define template parameters.
o Javascript XUL : events (onkeyup, onchange,...) of XUL fields can be linked to Javascript functions to update another XUL fields.
It's possible to test your Javascript/XUL with Firefox by setting .xul extension into the XML components file.
o Model : when template use XML document or JAVA class, XML component must define a XML/class JAVA model pour oblige user to select the file before displaying the Wizard page.
o dynamic XUL : the Wizard page can use the model defined on below to display a XUL which depends on selected XML file/JAVA class.
With dynamic XUL you can for instance display list of selected JAVA class getters into a tree which contains checkbox (to select getters to use into the template). The Freemarker syntaxe (square bracket) is used in this case.
* Catalogue : a catalog contains components, templates that you wish generate.
To open XML component Wizrad page, you can use Catalog view or contextual Akrogen menu (after having selected a file of your Eclipse project).
* Template engine :
o Templates : templates can be written in Freemarker, Velocity ou XSLT. It's possible to implement another template with Spring descriptor.
o Modèle : model which is used into templates are String parameters or XML/class JAVA (before having selected a file). Added on: 25-Apr-2007
|