diff dwtx/jface/internal/text/link/contentassist/AdditionalInfoController2.d @ 167:862b05e0334a

Add a wrapper for Thread
author Frank Benoit <benoit@tionex.de>
date Tue, 09 Sep 2008 15:59:16 +0200
parents 1a5b8f8129df
children cef27f663573
line wrap: on
line diff
--- a/dwtx/jface/internal/text/link/contentassist/AdditionalInfoController2.d	Mon Sep 08 01:01:30 2008 +0200
+++ b/dwtx/jface/internal/text/link/contentassist/AdditionalInfoController2.d	Tue Sep 09 15:59:16 2008 +0200
@@ -25,7 +25,7 @@
 import dwtx.jface.internal.text.link.contentassist.ContentAssistant2; // packageimport
 
 import dwt.dwthelper.utils;
-import tango.core.Thread;
+import dwtx.dwtxhelper.JThread;
 
 import dwt.events.SelectionEvent;
 import dwt.events.SelectionListener;
@@ -42,7 +42,6 @@
 import dwtx.jface.text.contentassist.ICompletionProposalExtension3;
 
 
-
 /**
  * Displays the additional information available for a completion proposal.
  *
@@ -73,7 +72,7 @@
     /** The proposal table */
     private Table fProposalTable;
     /** The thread controlling the delayed display of the additional info */
-    private Thread fThread;
+    private JThread fThread;
     /** Indicates whether the display delay has been reset */
     private bool fIsReset= false;
     /** Object to synchronize display thread and table selection changes */
@@ -122,7 +121,7 @@
         synchronized (fThreadAccess) {
             if (fThread !is null)
                 fThread.interrupt();
-            fThread= new Thread(this, ContentAssistMessages.getString("InfoPopup.info_delay_timer_name")); //$NON-NLS-1$
+            fThread= new JThread(this, ContentAssistMessages.getString("InfoPopup.info_delay_timer_name")); //$NON-NLS-1$
 
             fStartSignal= new Object();
             synchronized (fStartSignal) {
@@ -199,7 +198,7 @@
 
         synchronized (fThreadAccess) {
             // only null fThread if it is us!
-            if (Thread.currentThread() is fThread)
+            if (JThread.currentThread() is fThread)
                 fThread= null;
         }
     }