| |
|
| java.lang.Object org.eclipse.ui.internal.progress.JobTreeElement org.eclipse.ui.internal.progress.SubTaskInfo org.eclipse.ui.internal.progress.TaskInfo
TaskInfo | public class TaskInfo extends SubTaskInfo (Code) | | The TaskInfo is the info on a task with a job. It is assumed that there is
only one task running at a time - any previous tasks in a Job will be
deleted.
|
Constructor Summary | |
| TaskInfo(JobInfo parentJobInfo, String infoName, int total) Create a new instance of the receiver with the supplied total work and
task name. |
Method Summary | |
void | addWork(double workIncrement) Add the work increment to the total. | void | addWork(double workIncrement, IProgressMonitor parentMonitor, int parentTicks) Add the amount of work to the recevier. | String | getDisplayString(boolean showProgress) | String | getDisplayStringWithoutTask(boolean showProgress) Get the display String without the task name. | int | getPercentDone() Return an integer representing the amount of work completed. |
TaskInfo | TaskInfo(JobInfo parentJobInfo, String infoName, int total)(Code) | | Create a new instance of the receiver with the supplied total work and
task name.
Parameters: parentJobInfo - Parameters: infoName - Parameters: total - |
addWork | void addWork(double workIncrement)(Code) | | Add the work increment to the total.
Parameters: workIncrement - |
addWork | void addWork(double workIncrement, IProgressMonitor parentMonitor, int parentTicks)(Code) | | Add the amount of work to the recevier. Update a parent monitor by the
increment scaled to the amount of ticks this represents.
Parameters: workIncrement - int the amount of work in the receiver Parameters: parentMonitor - The IProgressMonitor that is also listening Parameters: parentTicks - the number of ticks this monitor represents |
getDisplayString | String getDisplayString(boolean showProgress)(Code) | | |
getDisplayStringWithoutTask | String getDisplayStringWithoutTask(boolean showProgress)(Code) | | Get the display String without the task name.
Parameters: showProgress - Whether or not we are showing progress String |
getPercentDone | int getPercentDone()(Code) | | Return an integer representing the amount of work completed. If progress
is indeterminate return IProgressMonitor.UNKNOWN.
int IProgressMonitor.UNKNOWN or a value between 0 and 100. |
|
|
|