|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.java.util.jobs.DefaultJobProgressMonitor
net.sourceforge.java.util.jobs.CompositeJobProgressMonitor
Reports the progress of a composite IJob, i.e. an
IJob which is segemented into several single sub tasks.
| Field Summary |
| Fields inherited from class net.sourceforge.java.util.jobs.DefaultJobProgressMonitor |
job, status, totalWork, workDone |
| Fields inherited from interface org.eclipse.core.runtime.IProgressMonitor |
UNKNOWN |
| Constructor Summary | |
CompositeJobProgressMonitor(IJob job)
Creates a new CompositeJobProgressMonitor.
|
|
| Method Summary | |
void |
beginTask(String name,
int totalWork)
Notifies that the main task is beginning. |
void |
done()
Notifies that the work is done; that is, either the main task is completed or the user canceled it. |
void |
internalWorked(double work)
Internal method to handle scaling correctly. |
void |
subTask(String name)
Notifies that a subtask of the main task is beginning. |
| Methods inherited from class net.sourceforge.java.util.jobs.DefaultJobProgressMonitor |
isCanceled, setCanceled, setTaskName, worked |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CompositeJobProgressMonitor(IJob job)
Creates a new CompositeJobProgressMonitor.
job - the IJob for which to report the progress| Method Detail |
public void beginTask(String name,
int totalWork)
Notifies that the main task is beginning. This must only be called once on a given progress monitor instance.
beginTask in interface IProgressMonitorbeginTask in class DefaultJobProgressMonitorname - the name (or description) of the main tasktotalWork - the total number of work units into which the main task
is been subdivided. If the value is UNKNOWN the
implementation is free to indicate progress in a way which doesn't
require the total number of work units in advance.public void done()
Notifies that the work is done; that is, either the main task is completed or the user canceled it. This method may be called more than once (implementations should be prepared to handle this case).
done in interface IProgressMonitordone in class DefaultJobProgressMonitorpublic void internalWorked(double work)
Internal method to handle scaling correctly. This method must not be called by a client. Clients should always use the method worked(int).
internalWorked in interface IProgressMonitorinternalWorked in class DefaultJobProgressMonitorwork - the amount of work donepublic void subTask(String name)
Notifies that a subtask of the main task is beginning. Subtasks are optional; the main task might not have subtasks.
subTask in interface IProgressMonitorsubTask in class DefaultJobProgressMonitorname - the name (or description) of the subtask
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||