Icons can be used to assign symbols to elements and actions. This helps in the differentiation of the displayed types at run time, or for orientation in context menus, table views, tree views, and so forth.
Modeled icons can appear, for example, in the following places at run time:
A function package provider has the possibility to support directly the icons for elements which belong to a linked element type.
The Eclipse function package supports all icons which are used for Eclipse resources (projects, folders, and files), so it is not necessary to create those icons in the AWM model editor.
A function package provider is able to support additional icons which can be used in the AWM model editor. Those icons are typically used to add icons to actions.
The Micro Focus Enterprise Developer Icons function package supports icons which can be used as action icons to create new Micro Focus projects.
Icons are modeled by being defined once and then referenced by a relationship to an Element Type or Action Descriptor.
You can add additional icons to be used in an AWM model. Right-click on the Icons category and select New Child > Custom Icon.
There are three available icon types:
Attribute | Type | Description |
---|---|---|
ID * | ID * | The ID of the icon. |
Predefined | Selection | This attribute is used to select an icon. The selected icon image is visible in the model editor, once the attribute value has been set. |
If a function package containing icons is added to a model, desired icons can simply be created by selecting them under
.Function package icons can have separate icon images for disabled actions, which are automatically used by AWM if the icon is associated to an action which is disabled due to an enabled condition.
When the new icon entry is selected in the model, you can select an image from the file system by double-clicking the Value field of the Filename attribute in the Eclipse Property view.
Supported image formats are GIF, JPEG, PNG, BMP, and JPG.
The image size must not exceed 64 by 64 pixels. Larger images are refused with an error message.
The binary data of the selected image is serialized to the model XML file when the model is saved.