Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339702 - SWTException thrown after clicking a dropdown toolbar twice and then something else
Summary: SWTException thrown after clicking a dropdown toolbar twice and then somethin...
Status: RESOLVED FIXED
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 4.1 M6   Edit
Assignee: Paul Webster CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-11 10:03 EST by Remy Suen CLA
Modified: 2011-03-11 13:22 EST (History)
2 users (show)

See Also:


Attachments
protect against dispose v01 (1.12 KB, patch)
2011-03-11 10:08 EST, Paul Webster CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Remy Suen CLA 2011-03-11 10:03:47 EST
I20110310-2200

1. Click the dropdown for the 'Run' tool item once.
2. Click it again while the menu is still up (or just double-click that's fine too).
3. Now click somewhere else so that the menu goes away.
4. An SWTException is thrown.

org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(SWT.java:4277)
at org.eclipse.swt.SWT.error(SWT.java:4192)
at org.eclipse.swt.SWT.error(SWT.java:4163)
at org.eclipse.swt.widgets.Widget.error(Widget.java:468)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:340)
at org.eclipse.swt.widgets.Menu.isVisible(Menu.java:1134)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.dropdownEvent(HandledContributionItem.java:466)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:425)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$1(HandledContributionItem.java:423)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$2.handleEvent(HandledContributionItem.java:388)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4150)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3739)
Comment 1 Paul Webster CLA 2011-03-11 10:08:52 EST
Created attachment 190988 [details]
protect against dispose v01
Comment 2 Paul Webster CLA 2011-03-11 13:22:04 EST
Released to HEAD
PW