[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

Hi,

I see what you're saying.  In general events are not fired for changes like
this that are triggered programmaticly (as opposed to user-triggered
changes, like with a mouse or keyboard).  There have been many discussions
in the past of the merits and disadvantages of this approach, but
regardless, this is what has been adopted.  So since you know that you are
disposing an item, you need to see if it's the current selection and take
appropriate action.

Grant


"Jan Bracker" <jan.bracker@xxxxxxxxxxxxxx> wrote in message
news:ffccace96a0eedd7f4c29306d9b58c87$1@xxxxxxxxxxxxxxxxxx
> Well, i have a table that shows differnet entries. If i delete a row,
> selection gets lost instead of jumping to the entry. But i have to update
> ui elements when the no element is selected because otherwise actions are
> available that may not be available.
>
> Regards,
> Jan Bracker
>