Setting source of SelectionEvent [message #448413] |
Sat, 08 January 2005 10:58  |
Eclipse User |
|
|
|
Originally posted by: fleque.users.NoSpam.sourceforge.net
Hi all,
I'm trying to implement a Composite accepting and notifying
SelectionListeners. So far so good, but I'm not able to instantiate a
SelectionEvent and set its source.
Is there a way?
Regards Alex
|
|
|
|
|
Re: Setting source of SelectionEvent [message #448877 is a reply to message #448769] |
Fri, 14 January 2005 09:45  |
Eclipse User |
|
|
|
Widget.removeListener(int, Listener) should do what you want.
Grant
"Fleque" <fleque@users.NoSpam.sourceforge.net> wrote in message
news:cs6n09$9on$1@www.eclipse.org...
> Thanks for your answer Grant,
>
> I had a look at this possibility (and some implementations of Widgets)
> and found the ?prefered? way to add listeners is by adding a
> TypedListener. I can do that in my Composite but can not remove it as I
> can not access the package-visible member of Widget eventTable to invoke
> unhook. Is there an other way to remove the listener ??
>
> Regards Alex
>
>
>
> Grant Gayed wrote:
> > Alex,
> >
> > You just create a regular Event object, set its widget field, and send
it
> > with Widget.notifyListeners(SWT.Selection, yourEvent).
> >
> > Grant
> >
|
|
|
Powered by
FUDForum. Page generated in 0.05351 seconds