public class TextProgressMonitor extends BatchingProgressMonitor
UNKNOWN
Constructor and Description |
---|
TextProgressMonitor()
Initialize a new progress monitor.
|
TextProgressMonitor(Writer out)
Initialize a new progress monitor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
onEndTask(String taskName,
int workCurr)
Finish the progress monitor when the total wasn't known in advance.
|
protected void |
onEndTask(String taskName,
int cmp,
int totalWork,
int pcnt)
Finish the progress monitor when the total is known in advance.
|
protected void |
onUpdate(String taskName,
int workCurr)
Update the progress monitor if the total work isn't known,
|
protected void |
onUpdate(String taskName,
int cmp,
int totalWork,
int pcnt)
Update the progress monitor when the total is known in advance.
|
beginTask, endTask, isCancelled, setDelayStart, start, update
public TextProgressMonitor()
public TextProgressMonitor(Writer out)
out
- the stream to receive messages on.protected void onUpdate(String taskName, int workCurr)
BatchingProgressMonitor
onUpdate
in class BatchingProgressMonitor
taskName
- name of the task.workCurr
- number of units already completed.protected void onEndTask(String taskName, int workCurr)
BatchingProgressMonitor
onEndTask
in class BatchingProgressMonitor
taskName
- name of the task.workCurr
- total number of units processed.protected void onUpdate(String taskName, int cmp, int totalWork, int pcnt)
BatchingProgressMonitor
onUpdate
in class BatchingProgressMonitor
taskName
- name of the task.cmp
- number of units already completed.totalWork
- estimated number of units to process.pcnt
- workCurr * 100 / workTotal
.protected void onEndTask(String taskName, int cmp, int totalWork, int pcnt)
BatchingProgressMonitor
onEndTask
in class BatchingProgressMonitor
taskName
- name of the task.cmp
- total number of units processed.totalWork
- estimated number of units to process.pcnt
- workCurr * 100 / workTotal
.Copyright © 2016 Eclipse JGit Project. All rights reserved.