Interface ProgressMonitor
public interface ProgressMonitor
A progress monitor passed to a
PluginFeature that allows reporting
the progress of process.-
Method Summary
Modifier and TypeMethodDescriptionvoidNotifies that the main task is beginning.booleanCall this method repeatedly to check, if the user wants to cancel the process.voidsetTaskName(String name) voidworked(int work) Notifies that a given number of work unit of the main task has been completed.
-
Method Details
-
isCanceled
boolean isCanceled()Call this method repeatedly to check, if the user wants to cancel the process. Abort the process if this returnstrue.- Returns:
trueif the user has cancelled the process.
-
beginTask
Notifies that the main task is beginning.- Parameters:
name- the name of the current task shown to the user.totalWork- the total number of work units that will be done by the task.
-
setTaskName
- Parameters:
name- the name of the current task shown to the user.
-
worked
void worked(int work) Notifies that a given number of work unit of the main task has been completed.- Parameters:
work- the number of work units just completed.
-