Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340663 - Improve default enum item labels
Summary: Improve default enum item labels
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sapphire (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Konstantin Komissarchik CLA
QA Contact:
URL:
Whiteboard:
Keywords: plan
Depends on:
Blocks:
 
Reported: 2011-03-22 10:35 EDT by Konstantin Komissarchik CLA
Modified: 2021-11-19 09:21 EST (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 Konstantin Komissarchik CLA 2011-03-22 10:35:33 EDT
If @Label annotation is not used on enum items, Sapphire currently uses the string returned by the name() function. Java convention for enums is to use all caps with underscores for word separators. This doesn't make a good label. We should lowercase the string and replace underscores with spaces.
Comment 1 Konstantin Komissarchik CLA 2011-03-22 11:15:38 EDT
Implemented.
Comment 2 Ling Hao CLA 2011-06-08 18:09:18 EDT
Verified with sapphire-gallery.xml -> element properties