diff options
author | Bogdan Gheorghe <gheorghe> | 2008-01-16 18:03:39 +0000 |
---|---|---|
committer | Bogdan Gheorghe <gheorghe> | 2008-01-16 18:03:39 +0000 |
commit | 54a5d6f56b76f4165cc2107034821c5874675b14 (patch) | |
tree | 5161a38925fb7f87c98280dda77ac78924c488b7 | |
parent | e560ebe3a94d9d2c05241023df314cd0e202a8f2 (diff) | |
download | eclipse.platform.swt-54a5d6f56b76f4165cc2107034821c5874675b14.tar.gz eclipse.platform.swt-54a5d6f56b76f4165cc2107034821c5874675b14.tar.xz eclipse.platform.swt-54a5d6f56b76f4165cc2107034821c5874675b14.zip |
207613 [Leopard] Progress dialog does not properly close on Leopard
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Synchronizer.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Synchronizer.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Synchronizer.java index 5074ed5af3..8da3a67391 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Synchronizer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Synchronizer.java @@ -38,6 +38,9 @@ public class Synchronizer { Object messageLock = new Object (); Thread syncThread; + //TEMPORARY CODE + static final boolean IS_CARBON = "carbon".equals (SWT.getPlatform ()); + /** * Constructs a new instance of this class. * @@ -75,8 +78,11 @@ void addLast (RunnableLock lock) { */ protected void asyncExec (Runnable runnable) { if (runnable == null) { - display.wake (); - return; + //TEMPORARY CODE + if (!IS_CARBON) { + display.wake (); + return; + } } addLast (new RunnableLock (runnable)); } |