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

Bug 359630

Summary: Pagebook - Enum Control Property - Exception
Product: z_Archived Reporter: Kamesh Sampath <kamesh.sampath>
Component: SapphireAssignee: Konstantin Komissarchik <konstantin>
Status: CLOSED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: konstantin, ling.hao
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Kamesh Sampath CLA 2011-10-01 00:53:00 EDT
Build Identifier: M20110909-1335

When using pagebook with Enum Control proeprty, sapphire throwing IndexOutOfBoundsException if we dont suffix the key with the Enum Property name

Reproducible: Always

Steps to Reproduce:
1.Create a Sapphire Model 
2.Add an Enum property
3.Define a Pagebook with Enum property as control
4.When defining the Pagebook pages, dont qualify the Key of the page with Enum class name
Comment 1 Konstantin Komissarchik CLA 2012-06-01 17:57:09 EDT
I made it easier to specify enum-controlled page book panel keys in following ways:

1. The qualified form is no longer required (but it is still supported). Just the enum item name will do.

2. The enum item search ignores case.

3. Better exception messages for common page key problems. Three error cases are covered:

Page book key "HtmlContentSourceType2.REMOTE" is invalid. Class "HtmlContentSourceType2" could not be resolved.

Page book key "HorizontalAlignment.REMOTE" is invalid. Class "HorizontalAlignment" does not match property type.

Page book key "EMBEDDED2" is invalid. Enum item "EMBEDDED2" could not be resolved in HtmlContentSourceType.

Please verify.
Comment 2 Ling Hao CLA 2012-06-04 20:34:26 EDT
Verified all 3 cases above. Closing.