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

Bug 362493

Summary: Single Selection Fields with lot of posible values not ordered
Product: z_Archived Reporter: Daniel Zarapico <dza.isban>
Component: MylynAssignee: Mylyn Inbox <mylyn-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
git patch solution example on SingleSelectionAtributeEditor Class none

Description Daniel Zarapico CLA 2011-10-31 10:29:09 EDT
Build Identifier: 20110615-0604

When a Single Selection Field has lot of posible values, the combo box is not ordered, so locating a especific value may become so hard.

It would be very useful this kind of fields be ordered when they had lot of values.


Reproducible: Always

Steps to Reproduce:
1. Open a task editor
2. Find a task attribute with a Single Selection field editor and lots of posible values that are not ordered (I use product field of our bugzilla or some custom fields with 50 or more posible values)
Comment 1 Daniel Zarapico CLA 2011-10-31 10:35:18 EDT
Created attachment 206216 [details]
git patch solution example on SingleSelectionAtributeEditor Class

This is a posible solution applied over SingleSelectionAtributeEditor class that orders combo field values when there are more than 20 posible values.

I have selected 20 because list under 20 entries can be managed without problems, but some other value may be used (10, 15, 30, ...).
Comment 2 Steffen Pingel CLA 2011-11-01 06:05:15 EDT
The ordering of items displayed by the control reflect the ordering of the configuration options that are provided by the connector. In order to present them in sorted order please sort the collection returned by getAttributeMapper().getOptions().