Some code to manage preferencePage with an extension point (as in Eclipse 3)