Bug 547422 - Fix i18n support and available values for Enum Renderer
Summary: Fix i18n support and available values for Enum Renderer
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.21.0   Edit
Assignee: Lucas Koehler CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2019-05-17 05:46 EDT by Lucas Koehler CLA
Modified: 2019-05-27 02:40 EDT (History)
0 users

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 05:46:31 EDT
The type matching of the EnumLiteralFilteredComboViewerSWTRenderer (which is the default enum renderer) should support finding and setting internationalized enum literals.
Furthermore, the enum renderer consider the feature's available choice values when collecting the enum literals to show.
Comment 1 Eclipse Genie CLA 2019-05-17 05:54:16 EDT
New Gerrit change created: https://git.eclipse.org/r/142311
Comment 3 Lucas Koehler CLA 2019-05-20 08:32:54 EDT
TEST INFORMATION
Summary of the critical part of the change
1. The enum control renderer now shows the internationalized strings of enum literals. Before it showed just the literals' string representations.
2. The enum control renderer does not show any literals which are not returned as an available choice by the item property descriptor of a feature which uses the enum as its type.

Potential regressions
If the literals are in fact internationalized, the displayed text changes in the UI.
If literals are filtered in item property descriptors, they are not shown in the UI anymore. (Default generated item property descriptors do not filter any literals)

Affected areas / use cases
Rendering enum features, internationalizing enum literals

Things that shall be tested
That all expected enum literals are still shown and have the correct labels
Comment 4 Eclipse Genie CLA 2019-05-24 16:19:55 EDT
New Gerrit change created: https://git.eclipse.org/r/142770