Eclipse Integration

We have finished to revise our plug-in for Eclipse. It supports Eclipse 3.0 now. With the plug-in you will be able to edit an iQgen project file (*.iqp) and select model elements for generation. The status of generation will be logged to the iQgen console in Eclipse. You are also able to start generation by clicking the right mouse button and select in the popup menu under iQgen > Generate. Only .iqp files enable the popup menu item for generation.

Using the iQgen Plug-In

Figure 4.5. iQgen project editor

iQgen project editor

Double-click a file with the .iqp extension to open the iQgen project editor. The editor shows several pages to edit the project file.

  • On the Transformation page you can set the model file, the project root path, the output directory, the template directory, the main jsp and properties to be used

  • On the Model page you can select the model elements for which you want to start the generation

  • On the Source page you can see the source of the project file

Warning

Do not edit the source of the project file!

You can start generation by clicking the button in the toolbar or by opening the popup menu on a .iqp file and selecting iQgen Generate.

iQgen Console

The iQgen console is released as a view, and you can open it via Window > Show Views > Other > iQgen Console. The following figure shows a list of generated files and some other information of the generation status.

Figure 4.6. iQgen console

iQgen console

You can set the logging filter and open a detail view by double-clicking an element of the list. If the element is a generated file, the file will be opened in the corresponding editor (e.g. Java files). If an error occurred while generating, you can double-click the error entry in the iQgen console (red triangle) and the JSP editor is opened with the right JSP file at the line which produced the error.

Planned Features

A short list of features we are thinking about: