Mercurial > projects > dwt2
comparison org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/AdditionalInfoController.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 |
comparison
equal
deleted
inserted
replaced
18:735224fcc45f | 19:52184e4b815c |
---|---|
44 import org.eclipse.jface.text.contentassist.IContentAssistantExtension; // packageimport | 44 import org.eclipse.jface.text.contentassist.IContentAssistantExtension; // packageimport |
45 import org.eclipse.jface.text.contentassist.JFaceTextMessages; // packageimport | 45 import org.eclipse.jface.text.contentassist.JFaceTextMessages; // packageimport |
46 | 46 |
47 import java.lang.all; | 47 import java.lang.all; |
48 import java.util.Set; | 48 import java.util.Set; |
49 import java.lang.JThread; | 49 import java.lang.Thread; |
50 import tango.core.sync.Mutex; | 50 import tango.core.sync.Mutex; |
51 import tango.core.sync.Condition; | 51 import tango.core.sync.Condition; |
52 | 52 |
53 import org.eclipse.swt.events.SelectionEvent; | 53 import org.eclipse.swt.events.SelectionEvent; |
54 import org.eclipse.swt.events.SelectionListener; | 54 import org.eclipse.swt.events.SelectionListener; |
283 } | 283 } |
284 }; | 284 }; |
285 } | 285 } |
286 | 286 |
287 /** The timer thread. */ | 287 /** The timer thread. */ |
288 private const JThread fThread; | 288 private const Thread fThread; |
289 | 289 |
290 /** The currently waiting / active task. */ | 290 /** The currently waiting / active task. */ |
291 private Task fTask; | 291 private Task fTask; |
292 /** The next wake up time. */ | 292 /** The next wake up time. */ |
293 private long fNextWakeup; | 293 private long fNextWakeup; |
319 fDisplay= display; | 319 fDisplay= display; |
320 fDelay= delay; | 320 fDelay= delay; |
321 long current= System.currentTimeMillis(); | 321 long current= System.currentTimeMillis(); |
322 schedule(IDLE, current); | 322 schedule(IDLE, current); |
323 | 323 |
324 fThread= new JThread( &threadrun ); | 324 fThread= new Thread( &threadrun ); |
325 fThread.setName( JFaceTextMessages.getString("InfoPopup.info_delay_timer_name")); //$NON-NLS-1$ | 325 fThread.setName( JFaceTextMessages.getString("InfoPopup.info_delay_timer_name")); //$NON-NLS-1$ |
326 fThread.start(); | 326 fThread.start(); |
327 } | 327 } |
328 void threadrun() { | 328 void threadrun() { |
329 try { | 329 try { |