Community
Participate
Working Groups
Build ID: Build id: I20080207-1530 org.eclipse.nebula.widgets.gallery_1.0.0.200802110300.jar Steps To Reproduce: 1. Create a view containing a Gallery widget. I used the NoGroupRenderer 2. Add a selection listener to the gallery, e.g. mGallery.addSelectionListener(mySelectionListener) 3. Populate the gallery with a set of images. 4. Display the view and monitor the selection listener in debug mode while selecting and un-selecting (click away from an image) items in the view. More information: This has the effect of making it pretty much impossible to toggle Actions depending on the selection state of the widget. Both methods Gallery#setSelected() and Gallery#deselectAll() are probably implicated in this bug.
Fixed on CVS. This may change the behavior of some app based on the widget.
New problem raised on newsgroups : >I noticed that some of my actions weren't getting disabled when the gallery >selection became empty - ie something was selected, then click on a blank group >area, now nothing selected. > >Turns out that no SeletionEvent is fired by the Gallery in this situation. > >I've made a simple change to onMouseDown() which does the trick for me, to just >call notifySelectionListeners with a null GalleryItem. Need to check SWT API for this case.
Fixed > 20090416. Behavior based on Cocoa 3.5M6 Table. Selection events are also sent on deselection with last previous item if there are still item selected or null if no more selected items. Change : on deselection (with Control), item is now one of the remaining item instead of the item that was deselected.
Created attachment 132024 [details] mylyn/context/zip