Project: Eclipse_Platform_UI
Bug 89340 [Preferences] Preferences working copy: Pages want to submit update jobs
Reported: 2005-03-29 08:29:46 | Status: verified fixed

20040329 The preference working copies are applied after all pages have their 'performOk()' called. That's fine, but raises the problem for pages that need to do a full build after changes. Before they could do it on 'performOk()', now this doesn't do anything as changes are not yet applied to the preference store. Suggestion is that pages can post update jobs that will be ran after the working copies have been applied. Advantage of that is also that the preferences infrastructure can detect and merge Jobs doings the same (e.g. full build jobs, using a unique job-familiy). Other advantage is that when a page cancels the 'OK' (by returning 'false' on performOk()) the infrastructure would not apply the working copy settings (not implemented at the moment) and also not run the update jobs. API: IWorkbenchPreferenceContainer.registerUpdateJob(Job job)

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/FilteredPreferenceDialog.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/preferences/IWorkbenchPreferenceContainer.java