public interface ITargetProgressMonitor
The same ITargetProgressMonitor instance may be added to any number of ITargets.
Modifier and Type | Method and Description |
---|---|
void |
done(ITarget target)
Notifies that the compile operation is done; that is, either the task is
completed or the user canceled it.
|
boolean |
isCanceled(ITarget target)
Returns whether cancellation of current compile operation for the
specified target has been requested.
|
void |
percentCompleted(ITarget target,
int percent)
Reports the percentage of the main work that has been completed so far.
|
void done(ITarget target)
boolean isCanceled(ITarget target)
target
- the target to check whether cancellation has been requested.true
if cancellation has been requested for
the specified target, and false
otherwisevoid percentCompleted(ITarget target, int percent)
This method will be called from the same call stack as the call into one of the methods of ITarget or one of its sub-interfaces, so it would be unwise to call any methods of ITarget or its sub-interfaces from the implementation of this method.
target
- the target for which progress information is being updated.percent
- the percentage of the main task completed so far.Copyright © 2016 The Apache Software Foundation. All rights reserved.