Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.util
Class DisplayThread

java.lang.Object
  extended by java.lang.Thread
      extended by eu.esdihumboldt.hale.ui.util.DisplayThread
All Implemented Interfaces:
Runnable

public class DisplayThread
extends Thread

Daemon thread that keeps an associated display.

Author:
Simon Templer

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
protected DisplayThread()
          Default constructor
 
Method Summary
protected  void cancel()
          Cancel the thread execution
 org.eclipse.swt.widgets.Display getDisplay()
           
static DisplayThread getInstance()
          Get the display thread instance.
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DisplayThread

protected DisplayThread()
Default constructor

Method Detail

getInstance

public static DisplayThread getInstance()
Get the display thread instance. On the first call the thread will be created and started, and a display created.

Returns:
the display thread

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread
See Also:
Thread.run()

getDisplay

public org.eclipse.swt.widgets.Display getDisplay()
Returns:
the display

cancel

protected void cancel()
Cancel the thread execution


Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d