[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

Yes, that's the idea.

One other possibility worth mentioning is that if doing this is really
undesirable (eg.- you want the object that disposes the item to be decoupled
from the one that listens for selection events) then a fake Selection event
can be created by the disposer and sent by the Table with
Table.sendNotification(...).  This will introduce a non-standard behaviour
in your table since Tables would not normally fire an event in this case,
but if your listener is the only one on the Table then it can be aware of
this and handle this case.

Grant


"Mark Dexter" <dextercowley@xxxxxxxxx> wrote in message
news:fuo1li$v0o$2@xxxxxxxxxxxxxxxxxxxx
> Jan Bracker wrote:
> > I'm not quite sure i understand what you mean. I should in knowledge of
> > deselection update from another point in application, e.g. within the
> > delete operation?
> >
> Hi Jan. I think he's saying that, when you delete a row in the table,
> there is something that happens inside your model to trigger a delete of
>   the row in the model. So perhaps this could trigger an update to the
> buttons, etc.? (Sorry if I'm missing something.) Mark