[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: What's the best way to notify an editor of preference changes?

Extending performOk is the correct approach but how you choose to perform 
the notification is up to you. 
The default behavior of notification in the preference framework should 
continue to be via PreferenceStore property change listeners.


jamsden@xxxxxxxxxxxxxxxxxxxxxx wrote:

>I could register interest on the perferences store, but then the editor 
>would get notified on each property store rather then when the OK button 
>is pressed on the preferences page. This would probably cause too many 
>updates, and often the preferences on a page have to changed as a group 
to 
>maintain proper semantics. I think what I'll do is override performOk() 
>and send my own property update event corresponding to the OK button 
being 
>pressed. Should this be the default behavior of 
>FieldEditorPreferencePage.performOk()?