| Summary: | Widget is disposed exception if close() is called on modal dialog after it has been cancelled | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Steffen Pingel <steffen.pingel> | ||||||
| Component: | Mylyn | Assignee: | Steffen Pingel <steffen.pingel> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | minor | ||||||||
| Priority: | P3 | CC: | danymaster, eclipse, wim.jongman | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | 3.4 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
Created attachment 169592 [details]
fix
Created attachment 169593 [details]
mylyn/context/zip
Patch committed. *** Bug 316579 has been marked as a duplicate of this bug. *** *** Bug 312782 has been marked as a duplicate of this bug. *** |
This snippet of code causes an exception on Eclipse 3.6: if (dialog.open() == Window.CANCEL) { dialog.close(); return; } Exception: org.eclipse.swt.SWTException: Widget is disposed at org.eclipse.swt.SWT.error(SWT.java:4083) at org.eclipse.swt.SWT.error(SWT.java:3998) at org.eclipse.swt.SWT.error(SWT.java:3969) at org.eclipse.swt.widgets.Widget.error(Widget.java:465) at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:403) at org.eclipse.swt.widgets.Label.setImage(Label.java:524) at org.eclipse.jface.dialogs.TitleAreaDialog.setTitleImage(TitleAreaDialog.java:650) at org.eclipse.jface.wizard.WizardDialog.hardClose(WizardDialog.java:870) at org.eclipse.jface.wizard.WizardDialog.close(WizardDialog.java:484) at org.eclipse.mylyn.internal.tasks.ui.actions.NewQueryAction.run(NewQueryAction.java:101)