Bug 547422

Summary: Fix i18n support and available values for Enum Renderer
Product: [Modeling] ECP Reporter: Lucas Koehler <lkoehler>
Component: EMF FormsAssignee: Lucas Koehler <lkoehler>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 Keywords: test
Version: unspecified   
Target Milestone: 1.21.0   
Hardware: PC   
OS: Linux   
See Also: https://git.eclipse.org/r/142311
https://git.eclipse.org/c/emfclient/org.eclipse.emf.ecp.core.git/commit/?id=e81b481e7b36e6b490c6b6d8c7bd9376884292c7
https://git.eclipse.org/r/142770
https://git.eclipse.org/c/emfclient/org.eclipse.emf.ecp.core.git/commit/?id=bcf7a24916c8a36d2f071fd2284c22a768887960
Whiteboard:

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