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

Bug 348682

Summary: Cannot use TreeViewer Composite or TableViewer Composite while Windows regional settings are set to Turkish standards
Product: z_Archived Reporter: Muammer Eroglu <muammer.eroglu>
Component: WindowBuilderAssignee: Project Inbox <wb.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Stack trace of the WindowBuilder editor none

Description Muammer Eroglu CLA 2011-06-08 04:03:12 EDT
Build Identifier: 20100917-0705

I'm using Windows XP 32bit English and my Regional settings are set for Turkish standards. In this configuration, I cannot instert a new TreeViewer Composite/TableViewer Composite component. Similarly, creating a TreeViewer by code and trying to switch to the design perspective produces the same error.

As you can see in the attachment, the stack trace points out to the 238th line of org.eclipse.wb.internal.core.model.property.editor.InnerClassPropertyEditor:

238 	m_mode = Mode.valueOf(modeText.toUpperCase());

In Turkish, upper case of the 'i' not 'I', but instead 'İ'. Thus, using uppercase function produces an incorrect Mode enum value in Turkish locale.


Reproducible: Always

Steps to Reproduce:
1. Windows Control Panel -> Regional and Language Options -> Regional Options Tab -> Set Standard and Formats to Turkish
2. Create a new RCP ViewPart
3. Set the base layout to GridView
4. Insert a TreeViewer Composite
Comment 1 Muammer Eroglu CLA 2011-06-08 04:04:07 EDT
Created attachment 197566 [details]
Stack trace of the WindowBuilder editor
Comment 2 Konstantin Scheglov CLA 2011-06-08 15:04:21 EDT
Fixed in trunk.