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

Bug 334400

Summary: Calling setSelected on ToogleButtonRidget has no effect on button state
Product: [RT] Riena Reporter: Joerg Pacher <joerg_pacher>
Component: ridgetAssignee: Elias Volanakis <elias>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 3.0.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Snippet none

Description Joerg Pacher CLA 2011-01-14 12:27:05 EST
Build Identifier: 3.0.0.v20101213_3_0_0_M4

When setSelected is called a property change event for property IToggleButtonRidget.PROPERTY_SELECTED is fired.
This is catched in the constructor of AbstractToggleButtonRidget but instead calling updateSelection, updateEnabled is called.

Reproducible: Always

Steps to Reproduce:
1. Create a checkbox with UIControlsFactory.createButtonCheck
2. Call setSelected(true) on the corresponding ridget
3. Checkbox does no go into selected state
Comment 1 Elias Volanakis CLA 2011-01-23 15:40:56 EST
Could not reproduce. See attached snippet. The "check" / "uncheck" button do modify the selected state successfully. 

It would be great if you can reopen this issue with a snippet that reproduces the bug. Feel free to use mine a starting point.
Comment 2 Elias Volanakis CLA 2011-01-23 15:41:39 EST
Created attachment 187389 [details]
Snippet

Snippet demonstrates correct working behavior.