Bug 207856 - [Preferences] Preference node is not sorted if it is contributed as dynamic extention.
Summary: [Preferences] Preference node is not sorted if it is contributed as dynamic ...
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.4 M7   Edit
Assignee: Kim Horne CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2007-10-29 17:24 EDT by Hiroyuki Okamoto CLA
Modified: 2008-04-29 15:14 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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