|
org.netbeans.libs.git/1 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.libs.git.progress.ProgressMonitor
org.netbeans.libs.git.progress.ProgressMonitor.DefaultProgressMonitor
public static class ProgressMonitor.DefaultProgressMonitor
Basic implementation of the ProgressMonitor abstract class.
Provides no functionality except for canceling a running command.
To cancel a running command invoke the cancel method.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.netbeans.libs.git.progress.ProgressMonitor |
|---|
ProgressMonitor.DefaultProgressMonitor |
| Constructor Summary | |
|---|---|
ProgressMonitor.DefaultProgressMonitor()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProgressMonitor.DefaultProgressMonitor()
| Method Detail |
|---|
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 true
isCanceled in class ProgressMonitorpublic void started(String command)
ProgressMonitor
started in class ProgressMonitorcommand - a string representing a commandline version of the started commandpublic void finished()
ProgressMonitor
finished in class ProgressMonitorpublic void preparationsFailed(String message)
ProgressMonitor
preparationsFailed in class ProgressMonitormessage - error descriptionpublic void notifyError(String message)
ProgressMonitor
notifyError in class ProgressMonitormessage - description of the errorpublic void notifyWarning(String message)
ProgressMonitor
notifyWarning in class ProgressMonitormessage - description of the warning
|
org.netbeans.libs.git/1 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||