public abstract class XViewerUIJob
extends org.eclipse.core.runtime.jobs.Job
| Constructor and Description |
|---|
XViewerUIJob(org.eclipse.swt.widgets.Display jobDisplay,
java.lang.String name)
Create a new instance of the receiver with the supplied Display.
|
XViewerUIJob(java.lang.String name)
Create a new instance of the receiver with the supplied name.
|
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.core.runtime.IStatus |
errorStatus(java.lang.Throwable exception)
Convenience method to return a status for an exception.
|
org.eclipse.swt.widgets.Display |
getDisplay()
Returns the display for use by the receiver when running in an asyncExec.
|
org.eclipse.core.runtime.IStatus |
run(org.eclipse.core.runtime.IProgressMonitor monitor) |
abstract org.eclipse.core.runtime.IStatus |
runInUIThread(org.eclipse.core.runtime.IProgressMonitor monitor)
Run the job in the UI Thread.
|
void |
setDisplay(org.eclipse.swt.widgets.Display runDisplay)
Sets the display to execute the asyncExec in.
|
addJobChangeListener, belongsTo, cancel, canceling, create, create, createSystem, createSystem, createSystem, done, getJobGroup, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, join, removeJobChangeListener, schedule, schedule, setJobGroup, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, toString, wakeUp, wakeUp, yieldRulepublic XViewerUIJob(java.lang.String name)
name - the job namepublic XViewerUIJob(org.eclipse.swt.widgets.Display jobDisplay,
java.lang.String name)
jobDisplay - the displayname - the job nameJobpublic static org.eclipse.core.runtime.IStatus errorStatus(java.lang.Throwable exception)
exception - Jobpublic final org.eclipse.core.runtime.IStatus run(org.eclipse.core.runtime.IProgressMonitor monitor)
run in class org.eclipse.core.runtime.jobs.JobNote: this message is marked
final. Implementors should use runInUIThread() instead.public abstract org.eclipse.core.runtime.IStatus runInUIThread(org.eclipse.core.runtime.IProgressMonitor monitor)
monitor - public void setDisplay(org.eclipse.swt.widgets.Display runDisplay)
runDisplay - DisplaygetDisplay(),
PlatformUI.isWorkbenchRunning()public org.eclipse.swt.widgets.Display getDisplay()
null.