Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 314022

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: MylynAssignee: 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:
Description Flags
fix
none
mylyn/context/zip none

Description Steffen Pingel CLA 2010-05-22 17:10:21 EDT
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)
Comment 1 Steffen Pingel CLA 2010-05-22 17:12:48 EDT
Created attachment 169592 [details]
fix
Comment 2 Steffen Pingel CLA 2010-05-22 17:12:53 EDT
Created attachment 169593 [details]
mylyn/context/zip
Comment 3 Steffen Pingel CLA 2010-05-22 17:13:17 EDT
Patch committed.
Comment 4 Steffen Pingel CLA 2010-06-11 17:14:23 EDT
*** Bug 316579 has been marked as a duplicate of this bug. ***
Comment 5 Steffen Pingel CLA 2010-07-09 21:41:01 EDT
*** Bug 312782 has been marked as a duplicate of this bug. ***