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

Bug 271152

Summary: [ToolItem] programmatic setSelection of Radio item does not update graphics
Product: [RT] RAP Reporter: Howard <hyeh>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1    
Version: 1.2   
Target Milestone: 1.2 M7   
Hardware: All   
OS: All   
Whiteboard:

Description Howard CLA 2009-04-03 12:39:00 EDT
Using RAP 1.2 M6, on Windows XP, IE7.

------------- Cut and pasted from post in newsgroup ---------------
I have a toolbar with some toolItems in RADIO style as a navigation aid. Kinda like a tab folder but instead the toolItem marks what page you are on. Only one item should stays "pressed".
In my program I need to programmatically navigate to another page, so I would unselect the current item and select the new item.  This works fine in SWT, but in RAP the setSelection calls doesn't cause the item to change graphically.
-------------------------------------------------------------------
To reproduce:

Create a toolbar with a toolItem, and a separate button.
Add a selectionListener to the toolItem, that when pressing the button, it will call setSelection on the toolItem to the opposite state.
Run the test and click on the button.  Should work fine in SWT but not RWT.
Comment 1 Ivan Furnadjiev CLA 2009-04-10 08:24:45 EDT
Fixed in CVS HEAD.