[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform.swt] Re: Difference between addListener() and addSelectionListener()?
|
There should not be a behavioural difference between these two, so if you're
seeing one then please log a bug report with Platform - SWT.
Thanks,
Grant
"Doug Pearson" <doug-list@xxxxxxxxxxxxxx> wrote in message
news:d8dsjm$vim$2@xxxxxxxxxxxxxxxxxxx
> This article says that SelectionListener() is implemented in terms of
> the primitive SWT.Selection event -- which is as you'd expect.
>
> So given that I suppose this means there's a bug in this translation
> when embedding a button in a table because only the untyped
> SWT.Selection event fires and the typed form does nothing.
>
> Doug
>
> Michael Cheung wrote:
>
> > http://www.awprofessional.com/articles/article.asp?p=354574&seqNum=3
> >
> > The different is Untyped and typed listeners
> >
> > "Doug Pearson" <doug-list@xxxxxxxxxxxxxx> wrote in message
> > news:d8d1bd$84j$1@xxxxxxxxxxxxxxxxxxx
> >
> >>Anyone know what the difference is between
> >> addListener(SWT.Selection, ...) and
> >> addSelectionListener(...)?
> >>
> >>I always assumed these were equivalent, but I just discovered that when
> >>embedding a button in a table the first form fires but the second
doesn't.
> >>
> >>So clearly there's a difference.
> >>
> >>Thanks for any insights,
> >>
> >>Doug
> >>
> >
> >
> >
>