Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTod Creasey2008-01-30 14:41:28 +0000
committerTod Creasey2008-01-30 14:41:28 +0000
commit8ef8e1722334ee72900c950279f78af9bf1cddee (patch)
treefd0f9acf00492937e7e3d8ad9c3321ef4bd98f61 /bundles/org.eclipse.jface/src/org/eclipse/jface/wizard/WizardDialog.java
parenta062325b593c31afa128df7f2b2fcd4f9b651642 (diff)
downloadeclipse.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.java4
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();
}
}

Back to the top