Images for EnumComboBox

From OS.bee documentation
Revision as of 14:53, 14 March 2017 by Dominguez (Talk | contribs)

Jump to: navigation, search

Using a EnumComboBox with images requires the creation and the storage of PNG-Images.
The images have to be from type PNG and the name has to be combined by the name of the enum class that hosts the combo box, the name of the enum literal and finally the postfix "image", e.g. TicketResolution.OPEN.image.png.
This images have to be stored with the corresponding theme icon subfolder within the bundle org.eclipse.osbp.themes.
As this bundle is not editable way the for you is to create an own fragment bundle with the bundle org.eclipse.osbp.themes as host plug-in. Important is that you also creates the corresponding theme icon subfolder and uses the required image file name as mentioned above and described below.

Path:

org.eclipse.osbp.vaadin.widgetset\org.eclipse.osbp.themes\VAADIN\themes\<usedTheme>\icon\

Name:

<EnumClassName>.<EnumLiteral>.image.png (e.g. TicketResolution.OPEN.image.png)