diff options
author | Tod Creasey | 2008-01-30 14:41:28 +0000 |
---|---|---|
committer | Tod Creasey | 2008-01-30 14:41:28 +0000 |
commit | 8ef8e1722334ee72900c950279f78af9bf1cddee (patch) | |
tree | fd0f9acf00492937e7e3d8ad9c3321ef4bd98f61 /bundles/org.eclipse.jface/src/org/eclipse/jface/wizard/WizardDialog.java | |
parent | a062325b593c31afa128df7f2b2fcd4f9b651642 (diff) | |
download | eclipse.platform.ui-8ef8e1722334ee72900c950279f78af9bf1cddee.tar.gz eclipse.platform.ui-8ef8e1722334ee72900c950279f78af9bf1cddee.tar.xz eclipse.platform.ui-8ef8e1722334ee72900c950279f78af9bf1cddee.zip |
Bug 184908 [Wizards] [Forms] Widget disposed error in forms while closing Java project wizard
Diffstat (limited to 'bundles/org.eclipse.jface/src/org/eclipse/jface/wizard/WizardDialog.java')
-rw-r--r-- | bundles/org.eclipse.jface/src/org/eclipse/jface/wizard/WizardDialog.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/wizard/WizardDialog.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/wizard/WizardDialog.java index b15472af41f..2fb96f96bba 100644 --- a/bundles/org.eclipse.jface/src/org/eclipse/jface/wizard/WizardDialog.java +++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/wizard/WizardDialog.java @@ -1201,7 +1201,7 @@ public class WizardDialog extends TitleAreaDialog implements IWizardContainer2, * @see #aboutToStart */ private void stopped(Object savedState) { - if (getShell() != null) { + if (getShell() != null && !getShell().isDisposed()) { if (wizard.needsProgressMonitor()) { progressMonitorPart.setVisible(false); progressMonitorPart.removeFromCancelComponent(cancelButton); @@ -1216,7 +1216,7 @@ public class WizardDialog extends TitleAreaDialog implements IWizardContainer2, arrowCursor.dispose(); arrowCursor = null; Control focusControl = (Control) state.get(FOCUS_CONTROL); - if (focusControl != null) { + if (focusControl != null && !focusControl.isDisposed()) { focusControl.setFocus(); } } |