eu.esdihumboldt.hale.ui.util
Class DisplayThread
java.lang.Object
java.lang.Thread
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
Constructor Summary |
protected |
DisplayThread()
Default constructor |
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 |
DisplayThread
protected DisplayThread()
- Default constructor
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
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d