Code and Stuff

Apr 16, 2012

Eclipse RCP Location of Preferences

Preferences in Eclipse 3 have 3 different scopes:

DefaultScope Constant Preferences Taken from preferenceCustomization
ConfigurationScope Application wide configuration Stored in the configuration/.settings folder
InstanceScope Workspace wide configuration (this is the one you should get from the Activator's getPreferenceStore if not overridden) Stored in the .metadata/.plugin folder of the workspace

Note related to Mac Export Tricks post: To get all the preferences in the path specified with the -data parameter use the InstanceScope. This should be the default you get when calling Activator.getDefault().getPreferenceStore().

No comments: