changelog shortlog tags manifest raw bz2 zip gz

changeset: Fix, thanks yidabu for the report and minimal test case.

changeset 69: bf0426bfc6e0
parent 68:6a3caa9022d6
child 70:1a69be0afe99
author: Frank Benoit <benoit@tionex.de>
date: Wed Apr 08 22:12:37 2009 +0200 (17 months ago)
files: org.eclipse.jface/src/org/eclipse/jface/action/ActionContributionItem.d
description: Fix, thanks yidabu for the report and minimal test case.
--- a/org.eclipse.jface/src/org/eclipse/jface/action/ActionContributionItem.d	Wed Apr 08 22:11:27 2009 +0200
+++ b/org.eclipse.jface/src/org/eclipse/jface/action/ActionContributionItem.d	Wed Apr 08 22:12:37 2009 +0200
@@ -186,12 +186,12 @@ public class ActionContributionItem : Co
 
         if (isVisible() && widget !is null) {
             Display display = widget.getDisplay();
-            if (display.getThread() is Thread.currentThread().nativeThread()) {
+            if (display.getThread() is Thread.currentThread()) {
                 update(e.getProperty());
             } else {
-                display.asyncExec(dgRunnable( (PropertyChangeEvent e_) {
-                    update(e_.getProperty());
-                }, e));
+                display.asyncExec(dgRunnable( (ActionContributionItem pthis, PropertyChangeEvent e_) {
+                    pthis.update(e_.getProperty());
+                }, this, e));
             }
 
         }