Project: Eclipse_Platform_UI
Bug 212038 [Preferences] WorkbenchPreferenceManager mishandles dynamic contributions
Reported: 2007-12-05 12:46:07 | Status: verified fixed

The WorkbenchPreferenceManager has issues handling dynamic contributions when a PreferenceNode is created programmatically. ClassCastExceptions get generated because WPM assumes that everything is of type WorkbenchPreferenceNode, where TestPreferenceNode is simply a PreferenceNode. I will attach a test case. By the way, I also noticed that the tree doesn't refresh properly if stuff is added dynamically.

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