public class BuildNotifier
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cancelling |
protected int |
fixedErrorCount |
static int |
FixedErrorCount |
protected int |
fixedWarningCount |
static int |
FixedWarningCount |
protected IProgressMonitor |
monitor |
protected int |
newErrorCount |
static int |
NewErrorCount |
protected int |
newWarningCount |
static int |
NewWarningCount |
protected float |
percentComplete |
protected java.lang.String |
previousSubtask |
protected float |
progressPerCompilationUnit |
protected int |
totalWork |
protected int |
workDone |
| Constructor and Description |
|---|
BuildNotifier(IProgressMonitor monitor,
IProject project) |
| Modifier and Type | Method and Description |
|---|---|
void |
aboutToCompile(SourceFile unit)
Notification before a compile that a unit is about to be compiled.
|
void |
begin() |
void |
checkCancel()
Check whether the build has been canceled.
|
void |
checkCancelWithinCompiler()
Check whether the build has been canceled.
|
void |
compiled(SourceFile unit)
Notification while within a compile that a unit has finished being compiled.
|
void |
done() |
protected java.lang.String |
problemsMessage()
Returns a string describing the problems.
|
static void |
resetProblemCounters() |
void |
setCancelling(boolean cancelling)
Sets the cancelling flag, which indicates we are in the middle
of being cancelled.
|
void |
setProgressPerCompilationUnit(float progress)
Sets the amount of progress to report for compiling each compilation unit.
|
void |
subTask(java.lang.String message) |
protected void |
updateProblemCounts(CategorizedProblem[] newProblems) |
protected void |
updateProblemCounts(IMarker[] oldProblems,
CategorizedProblem[] newProblems)
Update the problem counts from one compilation result given the old and new problems,
either of which may be null.
|
void |
updateProgress(float newPercentComplete) |
void |
updateProgressDelta(float percentWorked) |
protected IProgressMonitor monitor
protected boolean cancelling
protected float percentComplete
protected float progressPerCompilationUnit
protected int newErrorCount
protected int fixedErrorCount
protected int newWarningCount
protected int fixedWarningCount
protected int workDone
protected int totalWork
protected java.lang.String previousSubtask
public static int NewErrorCount
public static int FixedErrorCount
public static int NewWarningCount
public static int FixedWarningCount
public static void resetProblemCounters()
public void aboutToCompile(SourceFile unit)
public void begin()
public void checkCancel()
public void checkCancelWithinCompiler()
public void compiled(SourceFile unit)
public void done()
protected java.lang.String problemsMessage()
public void setCancelling(boolean cancelling)
public void setProgressPerCompilationUnit(float progress)
public void subTask(java.lang.String message)
protected void updateProblemCounts(CategorizedProblem[] newProblems)
protected void updateProblemCounts(IMarker[] oldProblems,
CategorizedProblem[] newProblems)
public void updateProgress(float newPercentComplete)
public void updateProgressDelta(float percentWorked)