...
When creating and reading configuration entries, be sure that you conform to the plugin development guidelines (/wiki/spaces/PD/pages/24721296 and /wiki/spaces/PD/pages/24721296 G046 and G152 in particular). When you follow the steps explained in this section, your plugin will conform to these guidelines.
...
The cardinality can be set for each property. Cardinality ‘-1’
means that the property can contain more than one value. Cardinality ‘1’
means that the property can only hold one value. Be sure that the id of the configuration set (my_config_set
) is prefixed by the plugin ID, as described in guideline /wiki/spaces/PD/pages/24721296 G152.
Create config.xml
While the file config_metatype.xml
can be compared to an interface, the file config.xml can be compared to an implementation of this interface. The config.xml
file should also be placed in the root of the resources folder. The config.xml
file contains default values for the properties as defined in config_metatype.xml
. The config.xml
for the above example looks like this:
...