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

If you download the 3.4M5 milestone build (or later), the new code is in 
there.
You can get the 3.4M5 SDK here: 
http://download.eclipse.org/eclipse/downloads/drops/S-3.4M5-200802071530/
Click on the download link for the platform you are running on.

We cannot back-port API to a previous version of eclipse, so for 
getListeners, you have to go with 3.4.

You are correct about the compare problem.
I have opened this bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=223113
Please cc yourself if you'd like to track this.
You might want to add a comment to describe your use case, and why you would 
need this to work.

For now, the best work-around is to use untyped listeners if you can, i.e. 
addListener(eventType, listener).
There's another work-around in the bug report.

Carolyn


"Alexandre Didiot" <nospam4alex@xxxxxxxxxxx> wrote in message 
news:aa2ff0b1b54c68182adc9508392c40c3$1@xxxxxxxxxxxxxxxxxx
> Hello Carolyn,
>
> This is exactly what I need it, but up to 3.4M5.
>
> In anyway, if I want to compare listeners (with equals()), I have
> to use the widget.addListener(eventType, myListener) methode, because the 
> new
> methode widget.getListeners(...) only returns objects of type Listener.
> (I can't compare SelectionListeners together).
>
> Is there a place where I can find the new methode like 
> widget.getListeners(int type) that you have implemented in the a milestone 
> ? In this link 
> http://download.eclipse.org/eclipse/downloads/drops/S-3.4M5-200802071530/buildnotes/buildnotes_swt.html
> you only have mentioned the bugs.
>
> Many thanks !
> Alexandre Didiot
> Treofan Germany
>
>
>