Eclipse Preferences - Tutorial

Preferences are key / values pairs where the key is an arbitrary name for the preference. The value can be a boolean, string, int of another primitive type. Eclipse Preferences allow to save plugin specific configuration values. Eclipse preferences (org.osgi.service.prefs.Preferences) are very similar to Java Preferences with some support of additional features. Eclipse Preferences use the Eclipse framework to save and retrieve the configuration. Preferences are received and saved by get and put methods while the get methods also supply a default value in case the preferences is not yet set.

Categories: Tutorial, Preferences

[html] Eclipse Preferences - Tutorial
September 2010
by Lars Vogel