Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356803 - De-select doesn't fire SelectionEvent
Summary: De-select doesn't fire SelectionEvent
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Nebula (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Thomas Schindl CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-06 08:32 EDT by Thorsten Schenkel CLA
Modified: 2021-07-05 11:41 EDT (History)
1 user (show)

See Also:


Attachments
Patch of Grid, deselect fires an event (1.24 KB, application/octet-stream)
2011-09-06 08:32 EDT, Thorsten Schenkel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thorsten Schenkel CLA 2011-09-06 08:32:03 EDT
Created attachment 202801 [details]
Patch of Grid, deselect fires an event

No Event will be fired, if the selection type of the Grid is SWT.SINGLE and an item will be deselected (with CTRL). Because the method Grid.updateSelection returns null and not an event, if the selectionType == SWT.SINGLE and CTRL was pressed.
On the other side, if selectionType == SWT.MULTI and CTRL was pressed always an event will be fired, also no selected item is left.
I think for a developer it can be helpful if an event is also fired after deselection.
Comment 1 Thomas Schindl CLA 2011-12-13 18:49:50 EST
Thanks released to head and show up in next build