|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface InterruptibleJobCommand
Simple interface for implementing the GOF Command design pattern
in an Eclipse job
and allows for the command to throw an InterruptedException.
Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
JobCommand| Method Summary | |
|---|---|
IStatus |
execute(IProgressMonitor monitor)
Execute the command. |
| Method Detail |
|---|
IStatus execute(IProgressMonitor monitor)
throws InterruptedException
"canceled"; if it is,
the command should return a result
status of severity IStatus.CANCEL. The singleton
cancel status Status.CANCEL_STATUS can be used for
this purpose.
Nested methods can also check the progress monitor
and, if it is "canceled", throw an
OperationCanceledException.
InterruptedExceptionIProgressMonitor.isCanceled(),
Job.run(IProgressMonitor monitor)
|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||