Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359630 - Pagebook - Enum Control Property - Exception
Summary: Pagebook - Enum Control Property - Exception
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sapphire (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Konstantin Komissarchik CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-01 00:53 EDT by Kamesh Sampath CLA
Modified: 2021-11-19 09:22 EST (History)
2 users (show)

See Also:


Attachments

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