Bug 547423 - [Table][Grid] Support sorting enums by internationalized literal
Summary: [Table][Grid] Support sorting enums by internationalized literal
Status: RESOLVED FIXED
Alias: None
Product: ECP
Classification: Modeling
Component: EMF Forms (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 1.22.0   Edit
Assignee: Lucas Koehler CLA
QA Contact:
URL:
Whiteboard:
Keywords: noteworthy, test
Depends on:
Blocks:
 
Reported: 2019-05-17 06:00 EDT by Lucas Koehler CLA
Modified: 2019-06-17 04:26 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lucas Koehler CLA 2019-05-17 06:00:42 EDT
The table and grid should support sorting enum columns by their internationalized literals. Currently enums are sorted by their ordinal number. From a user's point of view this leads to an arbitrary sort order.

In order to support this, the enum cell renderer also needs to show internationalized literals.Currently, it does not support these but just shows the literal as is.
Comment 1 Eclipse Genie CLA 2019-06-12 05:11:58 EDT
New Gerrit change created: https://git.eclipse.org/r/143810
Comment 3 Lucas Koehler CLA 2019-06-17 04:26:22 EDT
TEST INFORMATION
1. Summary of the critical part of the change
Enum values displayed in tables and grids now show the internationalized version of the enum's literals. Before this change, the model value of the literal was always shown.
2. Columns with enum values are now sorted by their shown literal.

Potential regressions
Users may see other enum values depending on their locale and the installed internationalizations

Affected areas / use cases
Internationalized software with tables/grids
Sorting tables/grids

Things that shall be tested
Enum values in tables/grids are still shown as expected.
Sorting of enum columns works as expected