Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348682 - Cannot use TreeViewer Composite or TableViewer Composite while Windows regional settings are set to Turkish standards
Summary: Cannot use TreeViewer Composite or TableViewer Composite while Windows region...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: WindowBuilder (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-08 04:03 EDT by Muammer Eroglu CLA
Modified: 2021-06-04 16:45 EDT (History)
0 users

See Also:


Attachments
Stack trace of the WindowBuilder editor (7.29 KB, text/plain)
2011-06-08 04:04 EDT, Muammer Eroglu CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.