Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360883 - Radio button based enum property editor sometimes changes property value during initialization
Summary: Radio button based enum property editor sometimes changes property value duri...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sapphire (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Konstantin Komissarchik CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-13 14:41 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 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.