Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329104 - Handle multiple types for class properties
Summary: Handle multiple types for class properties
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sapphire (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Konstantin Komissarchik CLA
QA Contact:
URL:
Whiteboard:
Keywords: plan
Depends on:
Blocks:
 
Reported: 2010-10-29 16:19 EDT by Konstantin Komissarchik CLA
Modified: 2021-11-19 09:22 EST (History)
1 user (show)

See Also:


Attachments

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