Mercurial > projects > dwt2
diff org.eclipse.ui.forms/src/org/eclipse/ui/internal/forms/widgets/BusyIndicator.d @ 19:52184e4b815c
no more direct tango.core.Thread. Rename JThread to java.lang.Thread.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 18 Mar 2009 10:55:25 +0100 |
parents | bc29606a740c |
children |
line wrap: on
line diff
--- a/org.eclipse.ui.forms/src/org/eclipse/ui/internal/forms/widgets/BusyIndicator.d Wed Mar 18 09:57:53 2009 +0100 +++ b/org.eclipse.ui.forms/src/org/eclipse/ui/internal/forms/widgets/BusyIndicator.d Wed Mar 18 10:55:25 2009 +0100 @@ -35,13 +35,13 @@ import java.util.Set; import tango.util.Convert; -import java.lang.JThread; +import java.lang.Thread; public final class BusyIndicator : Canvas { alias Canvas.computeSize computeSize; - class BusyThread : JThread { + class BusyThread : Thread { Rectangle bounds; Display display; GC offScreenImageGC; @@ -125,7 +125,7 @@ * Sleep for the specified delay time */ try { - JThread.sleep(MILLISECONDS_OF_DELAY); + Thread.sleep(MILLISECONDS_OF_DELAY); } catch (InterruptedException e) { ExceptionPrintStackTrace(e); } @@ -221,7 +221,7 @@ Image offScreenImage = new Image(display, bounds.width, bounds.height); GC offScreenImageGC = new GC(offScreenImage); busyThread = new BusyThread(bounds, display, offScreenImageGC, offScreenImage); - busyThread.setPriority(JThread.NORM_PRIORITY + 2); + busyThread.setPriority(Thread.NORM_PRIORITY + 2); busyThread.setDaemon(true); busyThread.start(); }