Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 340663

Summary: Improve default enum item labels
Product: z_Archived Reporter: Konstantin Komissarchik <konstantin>
Component: SapphireAssignee: Konstantin Komissarchik <konstantin>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: ling.hao
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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