|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.core.compiler.CompilationProgress
public abstract class CompilationProgress
A compilation progress is used by the BatchCompiler
to report progress during compilation.
It is also used to request cancellation of the compilation.
Clients of the BatchCompiler
should subclass this class, instantiate the subclass and pass this instance to
BatchCompiler.compile(String, java.io.PrintWriter, java.io.PrintWriter, CompilationProgress)
.
This class is intended to be instantiated and subclassed by clients.
Constructor Summary | |
---|---|
CompilationProgress()
|
Method Summary | |
---|---|
abstract void |
begin(int remainingWork)
Notifies that the compilation is beginning. |
abstract void |
done()
Notifies that the work is done; that is, either the compilation is completed or a cancellation was requested. |
abstract boolean |
isCanceled()
Returns whether cancellation of the compilation has been requested. |
abstract void |
setTaskName(java.lang.String name)
Reports the name (or description) of the current task. |
abstract void |
worked(int workIncrement,
int remainingWork)
Notifies that a given amount of work of the compilation has been completed. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompilationProgress()
Method Detail |
---|
public abstract void begin(int remainingWork)
worked(int, int)
.
Clients should not call this method.
remainingWork
- the estimated amount of remaining work.public abstract void done()
Clients should not call this method.
public abstract boolean isCanceled()
true
if cancellation has been requested,
and false
otherwisepublic abstract void setTaskName(java.lang.String name)
Clients should not call this method.
name
- the name (or description) of the current taskpublic abstract void worked(int workIncrement, int remainingWork)
Clients should not call this method.
workIncrement
- a non-negative amount of work just completedremainingWork
- a non-negative amount of estimated remaining work
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |