The problem is that I have more than two preferences, but only a special preference is relevant for a plugin. But in the above code I get notified for each change.
Is it possible to get notified for a special preference, even better when I get notified for a special BooleanFieldEditor used in the preference for example.
Is it possible [...] even better when I get notified for a special BooleanFieldEditor used in the preference for example.
Why do you want to do this? I'll posit that you don't want to know about what changed the preference (i.e., the BooleanFieldEditor). In doing so, you risk operating against stale data (i.e., a legitimate change came from elsewhere). If you're seeking to perform validation, check it in the editor or the pref page before writing the preference change out; by the time the event comes, it's too late: the value has been written out.
Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.