I want to enable project-based Preference-dialogs for our product. I stumble upon 2 different problems:
How do I store those project related informations. As an educated guess I would try this one:
IPreferenceStore store = new ScopedPreferenceStore(new ProjectScope(project.getIProject()), Activator.PLUGIN_ID)
;- Afterwards set the "project store" as I want (for example inside a preference page as store)
How do I enable a Preference Page only for a project? I know I can call a preference dialog with some preselected pages using the PreferenceUtils.createPreferenceDialogOn(…)
. Unfortunately the IDs of the preference pages have to defined in the org.eclipse.ui.preferencePages
extension point. But if they are inside this extension point, these pages are also in the global "Preferences" of the product. If they are not specified inside the EP the pages are not shown.
Any hints on that? Thanks in advance :)
EDIT: What I actually wanted was a properties dialog, not a preference dialog. If you are working with property pages, the PreferenceUtils does not work at all. If you contribute a properties page via org.eclipse.ui.propertyPages
it works well for the standard eclipse navigator - but how do I handle this inside a custom navigator (Common Navigator Framework)?