diff org.eclipse.jface/src/org/eclipse/jface/operation/ModalContext.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 735224fcc45f
children
line wrap: on
line diff
--- a/org.eclipse.jface/src/org/eclipse/jface/operation/ModalContext.d	Wed Mar 18 09:57:53 2009 +0100
+++ b/org.eclipse.jface/src/org/eclipse/jface/operation/ModalContext.d	Wed Mar 18 10:55:25 2009 +0100
@@ -28,7 +28,7 @@
 import java.lang.all;
 import java.lang.reflect.InvocationTargetException;
 import java.util.Set;
-import java.lang.JThread;
+import java.lang.Thread;
 
 /**
  * Utility class for supporting modal operations. The runnable passed to the
@@ -67,7 +67,7 @@
     /**
      * Thread which runs the modal context.
      */
-    private static class ModalContextThread : JThread {
+    private static class ModalContextThread : Thread {
         /**
          * The operation to be run.
          */
@@ -98,7 +98,7 @@
          *
          * @since 3.1
          */
-        private JThread callingThread;
+        private Thread callingThread;
 
         /**
          * Creates a new modal context.
@@ -118,7 +118,7 @@
             runnable = operation;
             progressMonitor = new AccumulatingProgressMonitor(monitor, display);
             this.display = display;
-            this.callingThread = JThread.currentThread();
+            this.callingThread = Thread.currentThread();
         }
 
         /*
@@ -274,7 +274,7 @@
      * context is active.
      */
     private static ModalContextThread getCurrentModalContextThread() {
-        JThread t = JThread.currentThread();
+        Thread t = Thread.currentThread();
         if ( auto r = cast(ModalContextThread)t ) {
             return r;
         }
@@ -305,7 +305,7 @@
      * @return <code>true</code> if the given thread is running a modal
      *         context, <code>false</code> if not
      */
-    public static bool isModalContextThread(JThread thread) {
+    public static bool isModalContextThread(Thread thread) {
         return (cast(ModalContextThread)thread) !is null;
     }
 
@@ -426,7 +426,7 @@
      *            the {@link Thread} being switched to
      */
     static Exception invokeThreadListener(IThreadListener listener,
-            JThread switchingThread) {
+            Thread switchingThread) {
         try {
             listener.threadChange(switchingThread);
 //         } catch (ThreadDeath e) {