|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.jgit.lib.NullProgressMonitor
public class NullProgressMonitor
A NullProgressMonitor does not report progress anywhere.
| Field Summary | |
|---|---|
static NullProgressMonitor |
INSTANCE
Immutable instance of a null progress monitor. |
| Fields inherited from interface org.eclipse.jgit.lib.ProgressMonitor |
|---|
UNKNOWN |
| Method Summary | |
|---|---|
void |
beginTask(java.lang.String title,
int totalWork)
Begin processing a single task. |
void |
endTask()
Finish the current task, so the next can begin. |
boolean |
isCancelled()
Check for user task cancellation. |
void |
start(int totalTasks)
Advise the monitor of the total number of subtasks. |
void |
update(int completed)
Denote that some work units have been completed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final NullProgressMonitor INSTANCE
| Method Detail |
|---|
public void start(int totalTasks)
ProgressMonitorThis should be invoked at most once per progress monitor interface.
start in interface ProgressMonitortotalTasks - the total number of tasks the caller will need to complete
their processing.
public void beginTask(java.lang.String title,
int totalWork)
ProgressMonitor
beginTask in interface ProgressMonitortitle - title to describe the task. Callers should publish these as
stable string constants that implementations could match
against for translation support.totalWork - total number of work units the application will perform;
ProgressMonitor.UNKNOWN if it cannot be predicted in advance.public void update(int completed)
ProgressMonitor
This is an incremental update; if invoked once per work unit the correct
value for our argument is 1, to indicate a single unit of
work has been finished by the caller.
update in interface ProgressMonitorcompleted - the number of work units completed since the last call.public boolean isCancelled()
ProgressMonitor
isCancelled in interface ProgressMonitorpublic void endTask()
ProgressMonitor
endTask in interface ProgressMonitor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||