Class BuildNotifier
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.builder.BuildNotifier
- Direct Known Subclasses:
AjBuildNotifier
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected int
static int
protected int
static int
protected org.eclipse.core.runtime.IProgressMonitor
protected int
static int
protected int
static int
protected float
protected String
protected float
protected int
protected int
-
Constructor Summary
ConstructorDescriptionBuildNotifier
(org.eclipse.core.runtime.IProgressMonitor monitor, int buildKind, BooleanSupplier interruptSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoid
aboutToCompile
(SourceFile unit) Notification before a compile that a unit is about to be compiled.void
begin()
void
Check whether the build has been canceled.void
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 String
Returns a string describing the problems.static void
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
protected void
updateProblemCounts
(CategorizedProblem[] newProblems) protected void
updateProblemCounts
(org.eclipse.core.resources.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)
-
Field Details
-
monitor
protected org.eclipse.core.runtime.IProgressMonitor monitor -
cancelling
protected volatile boolean cancelling -
percentComplete
protected float percentComplete -
progressPerCompilationUnit
protected float progressPerCompilationUnit -
newErrorCount
protected int newErrorCount -
fixedErrorCount
protected int fixedErrorCount -
newWarningCount
protected int newWarningCount -
fixedWarningCount
protected int fixedWarningCount -
workDone
protected int workDone -
totalWork
protected int totalWork -
previousSubtask
-
NewErrorCount
public static int NewErrorCount -
FixedErrorCount
public static int FixedErrorCount -
NewWarningCount
public static int NewWarningCount -
FixedWarningCount
public static int FixedWarningCount
-
-
Constructor Details
-
BuildNotifier
public BuildNotifier(org.eclipse.core.runtime.IProgressMonitor monitor, int buildKind, BooleanSupplier interruptSupplier)
-
-
Method Details
-
resetProblemCounters
public static void resetProblemCounters() -
aboutToCompile
Notification before a compile that a unit is about to be compiled. -
begin
public void begin() -
checkCancel
public void checkCancel()Check whether the build has been canceled. -
checkCancelWithinCompiler
public void checkCancelWithinCompiler()Check whether the build has been canceled. Must use this call instead of checkCancel() when within the compiler. -
compiled
Notification while within a compile that a unit has finished being compiled. -
done
public void done() -
problemsMessage
Returns a string describing the problems. -
setCancelling
public void setCancelling(boolean cancelling) Sets the cancelling flag, which indicates we are in the middle of being cancelled. Certain places (those callable indirectly from the compiler) should not check cancel again while this is true, to avoid OperationCanceledException being thrown at an inopportune time. -
setProgressPerCompilationUnit
public void setProgressPerCompilationUnit(float progress) Sets the amount of progress to report for compiling each compilation unit. -
subTask
-
updateProblemCounts
-
updateProblemCounts
protected void updateProblemCounts(org.eclipse.core.resources.IMarker[] oldProblems, CategorizedProblem[] newProblems) Update the problem counts from one compilation result given the old and new problems, either of which may be null. -
updateProgress
public void updateProgress(float newPercentComplete) -
updateProgressDelta
public void updateProgressDelta(float percentWorked)
-