Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Difference between addListener() and addSelectionListener()?
Difference between addListener() and addSelectionListener()? [message #456848] Fri, 10 June 2005 21:40 Go to next message
Eclipse UserFriend
Originally posted by: doug-list.threepenny.net

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
Re: Difference between addListener() and addSelectionListener()? [message #456892 is a reply to message #456848] Sat, 11 June 2005 00:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mcheung.equilar.com

http://www.awprofessional.com/articles/article.asp?p=354574& amp;seqNum=3

The different is Untyped and typed listeners

"Doug Pearson" <doug-list@threepenny.net> wrote in message
news:d8d1bd$84j$1@news.eclipse.org...
> 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
>
Re: Difference between addListener() and addSelectionListener()? [message #456893 is a reply to message #456892] Sat, 11 June 2005 05:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: doug-list.threepenny.net

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& amp;seqNum=3
>
> The different is Untyped and typed listeners
>
> "Doug Pearson" <doug-list@threepenny.net> wrote in message
> news:d8d1bd$84j$1@news.eclipse.org...
>
>>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
>>
>
>
>
Re: Difference between addListener() and addSelectionListener()? [message #456894 is a reply to message #456892] Sat, 11 June 2005 05:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: doug-list.threepenny.net

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& amp;seqNum=3
>
> The different is Untyped and typed listeners
>
> "Doug Pearson" <doug-list@threepenny.net> wrote in message
> news:d8d1bd$84j$1@news.eclipse.org...
>
>>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
>>
>
>
>
Re: Difference between addListener() and addSelectionListener()? [message #456972 is a reply to message #456894] Mon, 13 June 2005 13:14 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
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@threepenny.net> wrote in message
news:d8dsjm$vim$2@news.eclipse.org...
> 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& amp;seqNum=3
> >
> > The different is Untyped and typed listeners
> >
> > "Doug Pearson" <doug-list@threepenny.net> wrote in message
> > news:d8d1bd$84j$1@news.eclipse.org...
> >
> >>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
> >>
> >
> >
> >
>
Previous Topic:Conversion: from "Image" to "File"
Next Topic:getBackground and dispose
Goto Forum:
  


Current Time: Tue Apr 23 06:29:14 GMT 2024

Powered by FUDForum. Page generated in 0.03979 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top