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

Bug 360883

Summary: Radio button based enum property editor sometimes changes property value during initialization
Product: z_Archived Reporter: Konstantin Komissarchik <konstantin>
Component: SapphireAssignee: Konstantin Komissarchik <konstantin>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ling.hao
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Konstantin Komissarchik CLA 2011-10-13 14:41:34 EDT
Scenario:

1. Master details editor page.
2. Section under a node that is added by an add action (driven by a list).
3. In that section, the first thing is an enum property editor that renders via radio buttons (such as two enum items).
4. The property specifies something other than the first enum item as the default value.

When node is added and section is opened, the enum property is in changed state. The first enum item is selected. It should be in default state.

The issue is the code that sets focus on the section after adding the node. SWT behavior of Control.setFocus() on a radio button that isn't selected is to force selection to that radio button. To compensate, the code that locates the first focusable control should skip unselected radio buttons.
Comment 1 Konstantin Komissarchik CLA 2011-10-13 14:42:48 EDT
Fixed.
Comment 2 Ling Hao CLA 2011-11-28 19:19:10 EST
verified by going through the scenario and did not see any unexpected property changes.