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

Bug 330410

Summary: Generalize swiching-panel to support switching based on boolean type or simple value list
Product: z_Archived Reporter: Danny Ju <danny.ju>
Component: SapphireAssignee: Project Inbox <sapphire.ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: konstantin
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Danny Ju CLA 2010-11-16 17:05:35 EST
Build Identifier: M20100909-0800

The switching-panel UI part currently supports two types of controllers:
enum value and list selection. 
In use cause where property is a simple boolean, or list of simple strings, 
Will be useful I can do sth like this without defining a new enum type?
> 
>              <switching-panel>
>                   <enum-controller>
>                    <property>Remote</property>
>                </enum-controller>
>                <panel>
>                  <key>Boolean.TRUE</key>
>                  <content>
>                    <separator>
>                      <label>Remote Details</label>
>                    </separator>
>                  </content>
>                </panel>
>                <panel>
>                  <key>Boolean.FALSE</key>
>                  <content>
>                    <separator>
>                      <label>Local Details</label>
>                    </separator>
>                  </content>
>                </panel>
>              </switching-panel>
> 


Reproducible: Always
Comment 1 Konstantin Komissarchik CLA 2010-11-16 20:02:05 EST

*** This bug has been marked as a duplicate of bug 329063 ***