[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: Bug report: spurious events in workbench

Thank you for the problem report. The bug has already been detected and well be fixed in a future release of Eclipse.

Dani
--
daniel_megert@xxxxxxx

Cagatay Kavukcuoglu wrote:

> Some events in workbench including selection change and part activation are being triggered multiple times. The problem seems to be limited to JDT, and I have traced it to the following piece of code in org.eclipse.jdt.internal.ui.viewsupport.SelectionProviderMediator:
>
>  public void removeSelectionChangedListener(ISelectionChangedListener listener) {
>   if (fSelectionChangedListeners != null) {
>    fSelectionChangedListeners.add(listener);
>   }
>  }
>
> Instead of removing listeners when requested, it just adds them a second time, resulting in one more additional event being sent the next time selection changes. I know this bug is present in 134 and 135, but I haven't checked the previous builds.
>
> --
> CK.