Authors: | Laurent Goubet |
---|---|
Contact: | laurent.goubet@obeo.fr |
Copyright © 2008, Obeo™.
Once your templates are ready, you may want to have some wizards to launch the generation from eclipse. You can use the ant tasks or the java code, but you can also use the New Acceleo UI project wizard. This wizard will create a new eclipse ui project which will allow the user to launch the generation via an eclipse action. The example below shows the default result of this plugin, a new generate java action on the .uml files.
First, right click on the Acceleo generator project then New->Acceleo Module UI Project.
Choose a correct plugin name for the project, then click next.
Choose the generator project as referenced project, then click next.
Lastly, modify the model filename filter, and the java code for the target folder.
The wizard will create a new plugin with all the necessary code to have a new action for the selected model file that will generate code inside the specified folder.