Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsWhere does RAP store instance-scope preferences?
https://www.eclipse.org/forums/index.php/mv/msg/164751/521747/#msg_521747
I'm looking for a place where instance-scoped preferences are stored by rap.
Actually I want to track instance-scoped preferences. So if a preference
value gets changed - the event listener is invoked.
String myPluginId = "..."
IEclipsePreferences ep = sc.getNode(p);
ep.addPreferenceChangeListener(prefListener);
However this code seems not to be working. If I change values on
preference pages - the listener doesn't get invoked.
Dmitry]]>Dmitry Pryadkin2010-03-18T16:20:49-00:00Re: Where does RAP store instance-scope preferences?
https://www.eclipse.org/forums/index.php/mv/msg/164751/522448/#msg_522448
> Hello everybody,
>
> I'm looking for a place where instance-scoped preferences are stored by
> rap.
>
> Actually I want to track instance-scoped preferences. So if a preference
> value gets changed - the event listener is invoked.
If you follow IPreferencePageContainer#getPreferenceStore(), you will
probably find the implementation
>
> String myPluginId = "..."
> IEclipsePreferences ep = sc.getNode(p);
what is "sc"?, where does "p" come from?
> ep.addPreferenceChangeListener(prefListener);
>
> However this code seems not to be working. If I change values on
> preference pages - the listener doesn't get invoked.
>
> Dmitry]]>RĂ¼diger Herrmann2010-03-22T11:52:20-00:00