[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Bug report: spurious events in workbench
|
- From: "Cagatay Kavukcuoglu" <cagatayk@xxxxxxx>
- Date: Mon, 10 Sep 2001 12:11:55 -0400
- Newsgroups: eclipse.tools
- Organization: Innova Consulting Company
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.