public static class ProgressMonitor.DefaultProgressMonitor extends ProgressMonitor
ProgressMonitor abstract class.
Provides no functionality except for canceling a running command.
To cancel a running command invoke the cancel method.ProgressMonitor.DefaultProgressMonitor| Constructor and Description |
|---|
ProgressMonitor.DefaultProgressMonitor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel()
Cancels a currently running command.
|
void |
finished()
Called by a git command when it finishes its progress.
|
boolean |
isCanceled()
Returns
true if the progress should be canceled. |
void |
notifyError(String message)
Called when an error occurs during a git command's execution that however
does not prevent it from further actions.
|
void |
notifyWarning(String message)
Called when a non-fatal warning should be delivered to a git command's
caller.
|
void |
preparationsFailed(String message)
Called when a git command fails to start.
|
void |
started(String command)
Called when a git command is started.
|
public ProgressMonitor.DefaultProgressMonitor()
public final boolean cancel()
false if the command has already been canceled
before. Otherwise returns truepublic final boolean isCanceled()
ProgressMonitortrue if the progress should be canceled.
Git commands periodically check the result of the method and end their
progress immediately when the method returns trueisCanceled in class ProgressMonitorpublic void started(String command)
ProgressMonitorstarted in class ProgressMonitorcommand - a string representing a commandline version of the started commandpublic void finished()
ProgressMonitorfinished in class ProgressMonitorpublic void preparationsFailed(String message)
ProgressMonitorpreparationsFailed in class ProgressMonitormessage - error descriptionpublic void notifyError(String message)
ProgressMonitornotifyError in class ProgressMonitormessage - description of the errorpublic void notifyWarning(String message)
ProgressMonitornotifyWarning in class ProgressMonitormessage - description of the warningBuilt on May 22 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.