[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: How do i recieve a deselection event within swt table

Jan Bracker wrote:
Hello,

how can i detect a deselection event from within a swt table? When reigstering a normal SelectionListener i only recieve events when an item is selected but not when it is deselected. How do i recieve that kind of event?

Regards,
Prophet

Hi Jan. I don't think there are "deselection" events. I think each new selection event just replaces the last selection with the current one. So whatever you're doing with the selection (e.g., copy / paste, drag/drop, etc.) just uses whatever is in the current selection.

Is there a specific scenario you are trying to accomplish? BTW, a great way to get a handle on the available events is to run the SWT Controls example. It shows all of the events and you play with the app to see exactly what action triggers what event. Hope this helps. Mark