Mercurial > projects > dwt-addons
diff dwtx/jface/window/ToolTip.d @ 39:644f1334b451
fix anon classes
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Tue, 08 Apr 2008 22:05:42 +0200 |
parents | 8a302fdb4140 |
children | 46a6e0e6ccd4 |
line wrap: on
line diff
--- a/dwtx/jface/window/ToolTip.d Sun Apr 06 14:15:58 2008 +0200 +++ b/dwtx/jface/window/ToolTip.d Tue Apr 08 22:05:42 2008 +0200 @@ -430,10 +430,10 @@ CURRENT_TOOLTIP = shell; if (popupDelay > 0) { - control.getDisplay().timerExec(popupDelay, new class Runnable { + control.getDisplay().timerExec(popupDelay, new class(shell,event) Runnable { Shell shell_; Event event_; - this(){ shell_=shell; event_=event; } + this(Shell a,Event b){ shell_=a; event_=b; } public void run() { toolTipShow(shell_, event_); } @@ -444,9 +444,9 @@ if (hideDelay > 0) { control.getDisplay().timerExec(popupDelay + hideDelay, - new class Runnable { + new class(shell) Runnable { Shell shell_; - this(){ shell_=shell; } + this(Shell a){ shell_=a; } public void run() { toolTipHide(shell, null); } @@ -553,9 +553,9 @@ if (CURRENT_TOOLTIP !is null && !CURRENT_TOOLTIP.isDisposed()) { // Only change if value really changed if (hideOnMouseDown !is this.hideOnMouseDown) { - control.getDisplay().syncExec(new class Runnable { + control.getDisplay().syncExec(new class(hideOnMouseDown) Runnable { bool hideOnMouseDown_; - this(){ hideOnMouseDown_=hideOnMouseDown; } + this(bool a){ hideOnMouseDown_=a; } public void run() { if (CURRENT_TOOLTIP !is null && CURRENT_TOOLTIP.isDisposed()) {