Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362493 - Single Selection Fields with lot of posible values not ordered
Summary: Single Selection Fields with lot of posible values not ordered
Status: RESOLVED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Mylyn Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-31 10:29 EDT by Daniel Zarapico CLA
Modified: 2011-11-01 06:05 EDT (History)
0 users

See Also:


Attachments
git patch solution example on SingleSelectionAtributeEditor Class (1.52 KB, patch)
2011-10-31 10:35 EDT, Daniel Zarapico CLA
no flags Details | Diff

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