Mercurial > projects > dwt2
changeset 69:bf0426bfc6e0
Fix, thanks yidabu for the report and minimal test case.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 08 Apr 2009 22:12:37 +0200 |
parents | 6a3caa9022d6 |
children | 1a69be0afe99 |
files | org.eclipse.jface/src/org/eclipse/jface/action/ActionContributionItem.d |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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)); } }