Eclipse has an elaborate hierarchical preference mechanism:
- Plugins have a preferences.ini.
- The product can override the settings of any plugin via a plugin_customization.ini file
- Finally you can provide your own defaults via a command-line option -pluginCustomization /path/to/my/settings.ini.
When you create products, you typically include a plugin_customization.ini file in your product.
What if you need to create products with different settings?
Can you put the plugin_customization.ini file into fragments for your product plugin? That doesn't work. Plugin customization.ini files in fragments seem to be ignored.
But here's what you can do: Fake localization.
In your product plugin, have a plugin_customization.ini file that looks like this:
some.plugin/some_setting=%some_value
Then, in a fragment of the product plugin, place a plugin_customization.properties file that contains
some_value=Value A
In another fragment, you can have
By loading the appropriate fragments, for example from an update site, you can now install the settings that you want!