Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314022 - Widget is disposed exception if close() is called on modal dialog after it has been cancelled
Summary: Widget is disposed exception if close() is called on modal dialog after it ha...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: 3.4   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 312782 316579 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-05-22 17:10 EDT by Steffen Pingel CLA
Modified: 2010-07-09 21:41 EDT (History)
3 users (show)

See Also:


Attachments
fix (6.20 KB, patch)
2010-05-22 17:12 EDT, Steffen Pingel CLA
no flags Details | Diff
mylyn/context/zip (4.03 KB, application/octet-stream)
2010-05-22 17:12 EDT, Steffen Pingel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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. ***