diff dwtx/jface/text/reconciler/AbstractReconciler.d @ 172:d994a8b2cdf7

again compile fixes
author Frank Benoit <benoit@tionex.de>
date Wed, 10 Sep 2008 23:14:02 +0200
parents 862b05e0334a
children
line wrap: on
line diff
--- a/dwtx/jface/text/reconciler/AbstractReconciler.d	Wed Sep 10 22:45:07 2008 +0200
+++ b/dwtx/jface/text/reconciler/AbstractReconciler.d	Wed Sep 10 23:14:02 2008 +0200
@@ -87,17 +87,17 @@
          * @param name the thread's name
          */
         public this(String name) {
-            thread = new Thread( &run );
-            thread.name = name;
-            thread.priority = Thread.PRIORITY_MIN;
-            thread.isDaemon(true);
+            thread = new JThread( &run );
+            thread.setName( name );
+            thread.setPriority( JThread.MIN_PRIORITY );
+            thread.setDaemon(true);
         }
 
         public void start(){
             thread.start();
         }
         public bool isAlive(){
-            return thread.isRunning();
+            return thread.isAlive();
         }
         public JThread getThread(){
             return thread;
@@ -265,7 +265,7 @@
         public void documentChanged(DocumentEvent e) {
 
             if (!fThread.isDirty() && fThread.isAlive()) {
-                if (!fIsAllowedToModifyDocument && Thread.getThis() is fThread.getThread())
+                if (!fIsAllowedToModifyDocument && JThread.currentThread() is fThread.getThread())
                     throw new UnsupportedOperationException("The reconciler thread is not allowed to modify the document"); //$NON-NLS-1$
                 aboutToBeReconciled();
             }
@@ -630,6 +630,6 @@
      * @since 3.4
      */
     protected bool isRunningInReconcilerThread() {
-        return Thread.getThis() is fThread.getThread();
+        return JThread.currentThread() is fThread.getThread();
     }
 }