|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jgit.lib.BatchingProgressMonitor
org.eclipse.jgit.lib.TextProgressMonitor
public class TextProgressMonitor
A simple progress reporter printing on a stream.
Field Summary |
---|
Fields inherited from interface org.eclipse.jgit.lib.ProgressMonitor |
---|
UNKNOWN |
Constructor Summary | |
---|---|
TextProgressMonitor()
Initialize a new progress monitor. |
|
TextProgressMonitor(Writer out)
Initialize a new progress monitor. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.eclipse.jgit.lib.BatchingProgressMonitor |
---|
beginTask, endTask, isCancelled, setDelayStart, start, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextProgressMonitor()
public TextProgressMonitor(Writer out)
out
- the stream to receive messages on.Method Detail |
---|
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
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |