|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ITaskFactory
A factory that can start and run new ITasks.
| Method Summary | |
|---|---|
void |
start(java.lang.String title,
ITask task)
Starts a new task with a new ITaskMonitor. |
void |
start(java.lang.String title,
ITaskMonitor parentMonitor,
ITask task)
Starts a new task contributing to an already existing ITaskMonitor. |
| Method Detail |
|---|
void start(java.lang.String title,
ITask task)
ITaskMonitor.
The task will execute in a thread and runs it own UI loop.
This means the task can perform UI operations using
Display#asyncExec(Runnable).
In either case, the method only returns when the task has finished.
title - The title of the task, displayed in the monitor if any.task - The task to run.
void start(java.lang.String title,
ITaskMonitor parentMonitor,
ITask task)
ITaskMonitor.
To use this properly, you should use ITaskMonitor.createSubMonitor(int)
and give the sub-monitor to the new task with the number of work units you want
it to fill. The start(java.lang.String, com.android.sdklib.internal.repository.ITask) method will make sure to fill the progress
when the task is completed, in case the actual task did not.
When a task is started from within a monitor, it reuses the thread
from the parent. Otherwise it starts a new thread and runs it own
UI loop. This means the task can perform UI operations using
Display#asyncExec(Runnable).
In either case, the method only returns when the task has finished.
title - The title of the task, displayed in the monitor if any.parentMonitor - The parent monitor. Can be null.task - The task to run and have it display on the monitor.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||