Mercurial > projects > dwt-addons
comparison dwtx/jface/window/ToolTip.d @ 167:862b05e0334a
Add a wrapper for Thread
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Tue, 09 Sep 2008 15:59:16 +0200 |
parents | 3b2353d77f37 |
children | c3583c6ec027 |
comparison
equal
deleted
inserted
replaced
163:e5dd0081ccba | 167:862b05e0334a |
---|---|
33 // import dwtx.jface.viewers.ViewerCell; | 33 // import dwtx.jface.viewers.ViewerCell; |
34 | 34 |
35 import dwt.dwthelper.utils; | 35 import dwt.dwthelper.utils; |
36 import dwtx.dwtxhelper.Collection; | 36 import dwtx.dwtxhelper.Collection; |
37 import dwt.dwthelper.Runnable; | 37 import dwt.dwthelper.Runnable; |
38 import tango.core.Thread; | 38 import dwtx.dwtxhelper.JThread; |
39 /** | 39 /** |
40 * This class gives implementors to provide customized tooltips for any control. | 40 * This class gives implementors to provide customized tooltips for any control. |
41 * | 41 * |
42 * @since 3.3 | 42 * @since 3.3 |
43 */ | 43 */ |
493 | 493 |
494 tip.close(); | 494 tip.close(); |
495 display.asyncExec(dgRunnable( delegate(Display display_, Event newEvent_) { | 495 display.asyncExec(dgRunnable( delegate(Display display_, Event newEvent_) { |
496 if (IS_OSX) { | 496 if (IS_OSX) { |
497 try { | 497 try { |
498 Thread.sleep(0.300); | 498 JThread.sleep(300); |
499 } catch (InterruptedException e) { | 499 } catch (InterruptedException e) { |
500 | 500 |
501 } | 501 } |
502 | 502 |
503 display_.post(newEvent_); | 503 display_.post(newEvent_); |