Bug 37217 - [Preferences] please move IPreferenceStore to org.eclipse.core.runtime
Summary: [Preferences] please move IPreferenceStore to org.eclipse.core.runtime
Status: RESOLVED DUPLICATE of bug 36965
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Tod Creasey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-05 10:53 EDT by Jörg Lewek CLA
Modified: 2003-05-08 12:06 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg Lewek CLA 2003-05-05 10:53:09 EDT
In our application we distinguish between two kinds of plugins:
- plugins with a graphical user interface (ui-plugins) and
- plugins without a graphical user interface (model-plugins).

It is possible to have more than one ui-plugin for a model-plugin (we need this 
to provide customer specific ui configurations).

Our model-plugins defining preferences. The ui-plugins than provide the 
preference pages to specify the installation specific preference values. To use 
preference pages that are subclasses of 
org.eclipse.jface.preference.PreferencePage an IPreferenceStore is needed. 
Our idea was that the plugin that defines the preferences (that is the model-
plugin) provides the preference store too. If you want to do this the model-
plugins have to depend from org.eclipse.jface, but in our opion this is not 
right because a model plugin does not have an ui but jface is an ui-component.
Our suggestion is to move IPreferenceStore to org.eclipse.core.runtime and than 
move the inner class CompatibilityPreferenceStore from AbstractUIPlugin to 
Plugin.
Comment 1 Tod Creasey CLA 2003-05-08 12:06:52 EDT
Core already has the Preferences class that instances of Plugin have access to 
should you need it. 

The IPreferenceStore was implemented beforehand and needs to be merged with 
the Core story at some point.

I am going to mark this as a duplicate of the plan item for 3.0 Bug 36965 so 
that you can contribute to the discussion there.

*** This bug has been marked as a duplicate of 36965 ***