Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 207856

Summary: [Preferences] Preference node is not sorted if it is contributed as dynamic extention.
Product: [Eclipse Project] Platform Reporter: Hiroyuki Okamoto <hokamoto>
Component: UIAssignee: Kim Horne <eclipse>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipse, pwebster, raji, Tod_Creasey
Version: 3.2.2Keywords: helpwanted
Target Milestone: 3.4 M7   
Hardware: All   
OS: All   
Whiteboard:

Description Hiroyuki Okamoto CLA 2007-10-29 17:24:05 EDT
Build ID: M20070212-1330

Steps To Reproduce:
Using IExtensionRegistry.addContribution(),
Contribute to org.eclipse.ui.preferencePages.
The preference page name will show up at the end of the preference tree on Preference Dialog without sorted.


More information:
This is because, the nodes contributed by static extention are sorted in CategorizedPageRegistryReader.processNodes(), but the nodes contributed by dynamic extension are not sorted and just simply appended. (see WorkbenchPreferenceManager.addExtension method)
Comment 1 Tod Creasey CLA 2008-03-19 10:35:07 EDT
Could you give me an example plug-in? This isn't easy to set up myself.
Comment 2 Tod Creasey CLA 2008-03-25 13:13:20 EDT
Adding Kim as she has been working in this area.
Comment 3 Kim Horne CLA 2008-03-25 13:51:46 EDT
This may not be an issue any longer given our new sortation support.  We no longer sort in the registry - the sorting happens in the viewer itself.   I'll take this and verify once we get the basic support sorted out.
Comment 4 Kim Horne CLA 2008-04-03 10:00:51 EDT
This is fixed in M6.  The pages are sorted in the tree itself rather in the registry at load time.
Comment 5 Kim Horne CLA 2008-04-29 15:14:18 EDT
Verified in I20080429-0100