Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320154 - Handle an enum by ComboView
Summary: Handle an enum by ComboView
Status: CLOSED FIXED
Alias: None
Product: XWT
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-16 21:51 EDT by Yves YANG CLA
Modified: 2013-01-24 15:31 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yves YANG CLA 2010-07-16 21:51:01 EDT
At the current implementation, ComboView supports to deal a collection of elements including array, But there is a special set of items in Java language. It is an enumeration.

We have received such request in e4 forum:
http://www.eclipse.org/forums/index.php?t=msg&th=171917&start=0&

We need to find a simple syntax and data binding to define the enumeration data selection.
Comment 1 Yves YANG CLA 2010-07-18 02:02:04 EDT
We should provide the enumeration type as the binding source of input property: 
  <ComboViewer input="{Binding source={x:Type j:EmployeeType}}"/>
where EmployeeType is enum like:

enum EmployeeType {
   FullTime, PartialTime, Unemployed.
}
Comment 2 Yves YANG CLA 2010-07-18 02:02:47 EDT
The implementation is done and committed in CVS.