Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 338480

Summary: Enable IPreferenceChangeListener to be registered with org.eclipse.sphinx.platform.preferences.IEclipsePreference<T>
Product: [Automotive] Sphinx Reporter: Stephan Eberle <stephaneberle9>
Component: CoreAssignee: Stephan Eberle <stephaneberle9>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: balazs.grill
Version: 0.7.0   
Target Milestone: 0.7.0   
Hardware: All   
OS: All   
Whiteboard:

Description Stephan Eberle CLA 2011-02-28 16:57:46 EST
IEclipsePreference<T> and its decedents are a Sphinx-defined encapsulation of org.eclipse.core.runtime.preferences.IEclipsePreferences API. They support easy creation of application-defined preferences at workspace-level, project-level, or both, and support convenient conversion between string-based preference values and the actual domain objects which they represent.

In order to facilitate integration of IEclipsePreference<T>-based preferences with UI, e.g., preference and property pages, they should enable applications to register IPreferenceChangeListener instances with underlying IEclipsePreferences instances.
Comment 1 Stephan Eberle CLA 2011-02-28 17:04:12 EST
Fixed by adding add/removePreferenceChangeListener() methods to IWorkspacePreference, IProjectPreference, and IProjectWorkspacePreference and implementing them in corresponding abstract classes.
Comment 2 Balazs Grill CLA 2021-06-16 06:10:26 EDT
Closing since this was already resolved