| |
|
| org.eclipse.ui.progress.UIJob
All known Subclasses: org.eclipse.ui.progress.WorkbenchJob,
UIJob | abstract public class UIJob extends Job (Code) | | The UIJob is a Job that runs within the UI Thread via an asyncExec.
since: 3.0 |
Constructor Summary | |
public | UIJob(String name) Create a new instance of the receiver with the supplied name. | public | UIJob(Display jobDisplay, String name) Create a new instance of the receiver with the supplied Display. |
Method Summary | |
public static IStatus | errorStatus(Throwable exception) Convenience method to return a status for an exception. | public Display | getDisplay() Returns the display for use by the receiver when running in an
asyncExec. | final public IStatus | run(IProgressMonitor monitor) See Also: org.eclipse.core.runtime.jobs.Job.run(org.eclipse.core.runtime.IProgressMonitor) See Also: Note: this message is marked final. | abstract public IStatus | runInUIThread(IProgressMonitor monitor) Run the job in the UI Thread. | public void | setDisplay(Display runDisplay) Sets the display to execute the asyncExec in. |
UIJob | public UIJob(String name)(Code) | | Create a new instance of the receiver with the supplied name. The display
used will be the one from the workbench if this is available. UIJobs with
this constructor will determine thier display at runtime.
Parameters: name - the job name |
UIJob | public UIJob(Display jobDisplay, String name)(Code) | | Create a new instance of the receiver with the supplied Display.
Parameters: jobDisplay - the display Parameters: name - the job name See Also: Job |
errorStatus | public static IStatus errorStatus(Throwable exception)(Code) | | Convenience method to return a status for an exception.
Parameters: exception - IStatus an error status built from the exception See Also: Job |
getDisplay | public Display getDisplay()(Code) | | Returns the display for use by the receiver when running in an
asyncExec. If it is not set then the display set in the workbench
is used.
If the display is null the job will not be run.
Display or null . |
run | final public IStatus run(IProgressMonitor monitor)(Code) | | See Also: org.eclipse.core.runtime.jobs.Job.run(org.eclipse.core.runtime.IProgressMonitor) See Also: Note: this message is marked final. Implementors should use See Also: runInUIThread() instead. |
runInUIThread | abstract public IStatus runInUIThread(IProgressMonitor monitor)(Code) | | Run the job in the UI Thread.
Parameters: monitor - IStatus |
setDisplay | public void setDisplay(Display runDisplay)(Code) | | Sets the display to execute the asyncExec in. Generally this is not'
used if there is a valid display avaialble via PlatformUI.isWorkbenchRunning().
Parameters: runDisplay - Display See Also: UIJob.getDisplay See Also: PlatformUI.isWorkbenchRunning |
|
|
|