summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2007-08-20 18:39:29 +0000
committerSilenio Quarti <silenio>2007-08-20 18:39:29 +0000
commitef3d9f072937635d3537d0454bf6a3dc5f8b79cf (patch)
tree2fe45b54143c11632950eedb2a2cdd4bbdec2682
parent7be0547b3f53f1ce6457fd6460798fa55d7f2b06 (diff)
downloadeclipse.platform.swt-ef3d9f072937635d3537d0454bf6a3dc5f8b79cf.tar.gz
eclipse.platform.swt-ef3d9f072937635d3537d0454bf6a3dc5f8b79cf.tar.xz
eclipse.platform.swt-ef3d9f072937635d3537d0454bf6a3dc5f8b79cf.zip
194146 - CVSUIPlugin.stop not being called
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Display.java8
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java3
2 files changed, 7 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Display.java
index 4c7de0fe88..7220081d15 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Display.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Display.java
@@ -844,15 +844,17 @@ int coreEventProc (int theAppleEvent, int reply, int handlerRefcon) {
Event event = new Event ();
sendEvent (SWT.Close, event);
if (event.doit) {
+ dispose ();
/*
* When the application is closing, no SWT program can continue
* to run. In order to avoid running code after the display has
* been disposed, exit from Java.
*/
- dispose ();
- System.exit (0);
+ /* This code is intentionally commented */
+// System.exit (0);
+ } else {
+ return OS.userCanceledErr;
}
- return OS.userCanceledErr;
}
return OS.noErr;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java
index 0ea34a6df8..a61d6593db 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java
@@ -2984,7 +2984,8 @@ int /*long*/ messageProc (int /*long*/ hwnd, int /*long*/ msg, int /*long*/ wPar
* to run. In order to avoid running code after the display
* has been disposed, exit from Java.
*/
- System.exit (0);
+ /* This code is intentionally commented */
+// System.exit (0);
}
break;
}