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

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.