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

Bug 462889

Summary: Allow groups of preferences for the same category to be sorted a specific way
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: ClientAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 8.0   
Target Milestone: 9.0   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 462887    

Description Michael Rennie CLA 2015-03-23 16:24:50 EDT
While working on a fix for bug 462887 I found that providing groups of preferences for the same category always has them sorted by the name of the group, but in the case of bug 462887 I would like them not sorted by name.

For example, when I contribute the three groups:

1. Potential Programming Problems
2. Best Practices
3. Code Style

they are sorted on the settings page like:

1. Best Practices
2. Code Style
3. Potential Programming Problems

but I want them to stay in the order I define them (most important first - potential problems):

1. Potential Programming Problems
2. Best Practices
3. Code Style
Comment 1 Michael Rennie CLA 2015-03-24 16:23:00 EDT
The sorting (by name) happens in SettingsContainer line 330. Perhaps we could add a new getter to SettingImpl like getOrder() or getSort() that would be used along with its name.

for example, say we had settings A B C D(with order 1), the page would render like:
D A B C

and for colliding orders we would then sort by name. So for A B C D(1) E(1) the page would render as:

D E A B C