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

Bug 329104

Summary: Handle multiple types for class properties
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 2010-10-29 16:19:05 EDT
This tracks both model work and figuring out what this means in the UI.
Comment 1 Konstantin Komissarchik CLA 2010-12-07 15:50:42 EST
This work is now completed. There is quite a bit to discuss here, but I am not going to replicate the content from the doc. Information about the new features and migration details can be found at these location in sapphire docs:

org.eclipse.sapphire.doc/html/releases/0.2/index.html#element
org.eclipse.sapphire.doc/html/releases/0.2/migration.html#element

I have only implemented the radio button group UI style for managing the element for heterogeneous case. A "None" radio button tracks the case where the element is not present and is also the way for the user to delete an existing element. 

The feature can be viewed in the contacts sample. Look for Primary Occupation node in the content outline under the contact node.

There are more UI possibilities here... using combo box instead of radio buttons, optionally presenting a label in front of selectors, customizing the "None" label, etc. I will leave those for the future to be raised as enhancements as they are necessary.
Comment 2 Ling Hao CLA 2011-01-03 17:54:39 EST
Verified with gallery-sample's heterogeneous list.