| previous section: Understanding Hydra 2.0 The Hydra API |
next section: Using Hydra 2.0 Integrating Hydra in Java applications |
Using Hydra 2.0: Building a configuration file with the Hydra application
Content
The Hydra application
Go to the folder where you unzipped the release. Start the Hydra application by executing the hydra.bat file on Windows systems or the hydra.sh file on Linux systems. The graphical interface will show up. After creating a new configuration file, you will see the panel, which allows you to build a Hydra configuration with just a few clicks.
- Keys:
- Add key, Edit key, Remove key - These buttons allows you to modify the currently selected ConfigKey.
- Permission Level Keys - Choose the appropriate key permission from the drop-down list.
- Path - Displays the Hydra path of the currently selected ConfigKey. It can be used as argument to pass on to the HydraAPI methods.
- Up and down buttons - Move the currently selected ConfigKey up and down.
- Values (only available if the selected key is not the ConfigRoot):
- Add value, Edit value, Remove value - These buttons allows you to modify the ConfigValues of the currently selected ConfigKey.
- Permission Level Values - Choose the appropriate value permission from the drop-down list.
- Up and down buttons - Move the currently selected ConfigValue up and down.
The properties of the logging console can be changed by opening "Edit -> Settings". This dialog actually shows the kind of panel you get, when you integrate Hydra into your applications.
Using the Hydra application, you can create a Hydra configuration without much effort. The value panel on the right hand side shows the ConfigValues of the currently selected node. Changing the active status of an element is done by double-clicking on it. Any errors resulting from an illegal selection will be shown via a popup.
The configuration, which we have created in earlier tutorial sections, looks like this:

Changing the key and value selection mode
The key and value selection mode can be change by right-clicking on a ConfigKey and choosing the new mode. The current key and value selection mode is displayed in blue and green, respectively, on the top of the popup menu.

Cut, copy and paste actions
Note: The cut, copy and paste actions of the toolbar and the edit menu, only apply to ConfigKeys. If you want to cut, copy or paste ConfigValues use the context-menu of the value panel.
If an edit action results in an illegal selection or and illegal labelling (remember: labels must be unique among siblings), you will be notified.
| previous section: Understanding Hydra 2.0 The Hydra API |
next section: Using Hydra 2.0 Integrating Hydra in Java applications |
