Community
Participate
Working Groups
Build Identifier: 20100218-1602 I am running into a problem where the selection event is not triggered when I do a sequence of selections in a multi selection gallery. If I left click on one item, it selects it and triggers the listener for the selection. If I shift + left click on another item, it selects both items and also triggers the listener. However, if I left click on the first item again, the selection changes to selecting only that first item, but it does not trigger the selection listeners. I looked at the code and found this section onMouseHandleLeft. On mouse up and item is not null, it does a notify only if the lastSingleClick is not the current item. setSelected(item, true, lastSingleClick != item); onMouseHandleLeftShift does not register lastSingleClick so after we shift + left click a few items, left clicking on the first item will change our selection, but lastSingleClick has never changed so the notification to the listeners aren't sent. Reproducible: Always Steps to Reproduce: 1. Create a gallery with SWT.MULTI style with a few items. 2. Left click on item one 3. Shift + Left click on item two 4. Left click on item one. (If you shift + left click, you will get notification) 5. Selection was changed but no selection event was triggered.
This bug does not have a target milestone assigned and is automatically closed as part of the 2.3.0 release cleanup. It could be that this bug is accidentally closed for which we apologize. If this bug is still relevant, please re-open and set a target milestone.