comparison dwtx/jface/text/reconciler/AbstractReconciler.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 d994a8b2cdf7
comparison
equal deleted inserted replaced
163:e5dd0081ccba 167:862b05e0334a
25 import dwtx.jface.text.reconciler.IReconcileResult; // packageimport 25 import dwtx.jface.text.reconciler.IReconcileResult; // packageimport
26 import dwtx.jface.text.reconciler.IReconcilerExtension; // packageimport 26 import dwtx.jface.text.reconciler.IReconcilerExtension; // packageimport
27 27
28 28
29 import dwt.dwthelper.utils; 29 import dwt.dwthelper.utils;
30 import tango.core.Thread; 30 import dwtx.dwtxhelper.JThread;
31 31
32 import dwtx.core.runtime.Assert; 32 import dwtx.core.runtime.Assert;
33 import dwtx.core.runtime.IProgressMonitor; 33 import dwtx.core.runtime.IProgressMonitor;
34 import dwtx.core.runtime.NullProgressMonitor; 34 import dwtx.core.runtime.NullProgressMonitor;
35 import dwtx.jface.text.DocumentEvent; 35 import dwtx.jface.text.DocumentEvent;
67 67
68 /** 68 /**
69 * Background thread for the reconciling activity. 69 * Background thread for the reconciling activity.
70 */ 70 */
71 class BackgroundThread { 71 class BackgroundThread {
72 Thread thread; 72 JThread thread;
73 73
74 /** Has the reconciler been canceled. */ 74 /** Has the reconciler been canceled. */
75 private bool fCanceled= false; 75 private bool fCanceled= false;
76 /** Has the reconciler been reset. */ 76 /** Has the reconciler been reset. */
77 private bool fReset= false; 77 private bool fReset= false;
97 thread.start(); 97 thread.start();
98 } 98 }
99 public bool isAlive(){ 99 public bool isAlive(){
100 return thread.isRunning(); 100 return thread.isRunning();
101 } 101 }
102 public Thread getThread(){ 102 public JThread getThread(){
103 return thread; 103 return thread;
104 } 104 }
105 /** 105 /**
106 * Returns whether a reconciling strategy is active right now. 106 * Returns whether a reconciling strategy is active right now.
107 * 107 *