Bug 547423

Summary: [Table][Grid] Support sorting enums by internationalized literal
Product: [Modeling] ECP Reporter: Lucas Koehler <lkoehler>
Component: EMF FormsAssignee: Lucas Koehler <lkoehler>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eneufeld
Version: unspecifiedKeywords: noteworthy, test
Target Milestone: 1.22.0   
Hardware: PC   
OS: Linux   
See Also: https://git.eclipse.org/r/143810
https://git.eclipse.org/c/emfclient/org.eclipse.emf.ecp.core.git/commit/?id=5e7acbba5aaa03f9a36d14696609eda76a579ea8
Whiteboard:

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