[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: getListeners methode no present, why ?

You can use Widget.getListeners(int eventType).
For example, someControl.getListeners(SWT.Selection);

HTH,
Carolyn

"Alexandre Didiot" <nospam4alex@xxxxxxxxxxx> wrote in message 
news:9267dd1f7c3a90a57ea7f83a002e3620$1@xxxxxxxxxxxxxxxxxx
> Hello,
>
> Is there any "getter" methode so that I can test if a Control already have
> a certain Listener ?
> for example getSelectionListener or getListeners ...
> If no, why ? Is there a design reason ?
> In Swing you have it in JComponent (public <T extends EventListener> T[] 
> getListeners(Class<T> listenerType))
> or how I can have a workaround ?
>
> Regards,
> Alexandre Didiot
>
>
>
>
>
>