1.2.5. Using HuGo as Eclipse plugin
Aus Hugo Doku
Inhaltsverzeichnis |
1.2.5.1. Installing
For installing theHuGo Eclipse plugin, just extract the .zip file in the Eclipse plugin directory and start the Eclipse.
1.2.5.2. Setting up a HuGo project
1.2.5.2.1. The HuGo property page
For using HuGo in your project, you first have to "activate" it by its property page.
choose Project->Properties. Select hugo in the left selection bar and select in the corresponding property page on the right side the checkbox nature like shown in the following figure.
Confirm your settings with a click on the button OK. This will lead to a .hugo_project file on your disk where the settings of the HuGo property page are saved.
For the meanings of the parameters please refer to Chapter 4.
1.2.5.2.2. The directory structure
Now you need a directory structure like specified in the property page, at least the directories:
*model (respectivly what you set in the model-path parameter)
*filter (respectivly what you set in the filter-path parameter)
*frames (respectivly what you set in the gen(-name) parameter)
Please be aware of, that you need at least on .filter file (see Section 1.2.4)
1.2.5.3. The syntax colored frame editor
For editing .jxgp Files the HuGo plugin provides a special text editor. This editor is opened per default when you open a .jxgp file. In this editor HuGo keywords are colored, the @#gen methods are marked by a yellow background to see the target code at a glace.
1.2.5.4. Starting the generation process
To start the generating process call Build->Project.
Be sure, that in the property page of Builders, the HuGo Builder is selected like shown in the following picture:
Whether the HuGo Builder calls the model-builder and/ or the frame-builder is determined by the programs parameter set in the property page (see Section 1.2.5.2.1). Be aware of that HuGo is called first and afterwards the corresponding compiler, dependend on the projects nature.



