Class AjBuildNotifier
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.builder.BuildNotifier
org.aspectj.ajdt.internal.core.builder.AjBuildNotifier
- All Implemented Interfaces:
IProgressListener
- Author:
- colyer Build progress notification inside Eclipse
-
Field Summary
Fields inherited from class BuildNotifier
cancelling, fixedErrorCount, FixedErrorCount, fixedWarningCount, FixedWarningCount, monitor, newErrorCount, NewErrorCount, newWarningCount, NewWarningCount, percentComplete, previousSubtask, progressPerCompilationUnit, totalWork, workDoneModifier and TypeFieldDescriptionprotected booleanprotected intstatic intprotected intstatic intprotected org.eclipse.core.runtime.IProgressMonitorprotected intstatic intprotected intstatic intprotected floatprotected Stringprotected floatprotected intprotected int -
Constructor Summary
ConstructorsConstructorDescriptionAjBuildNotifier(org.eclipse.core.runtime.IProgressMonitor monitor, int buildKind, BooleanSupplier interruptSupplier) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetCancelledRequested(boolean cancelRequested) voidsetProgress(double percentDone) voidMethods inherited from class BuildNotifier
aboutToCompile, begin, checkCancel, checkCancelWithinCompiler, compiled, done, problemsMessage, resetProblemCounters, setCancelling, setProgressPerCompilationUnit, subTask, updateProblemCounts, updateProblemCounts, updateProgress, updateProgressDeltaModifier and TypeMethodDescriptionvoidaboutToCompile(SourceFile unit) Notification before a compile that a unit is about to be compiled.voidbegin()voidCheck whether the build has been canceled.voidCheck whether the build has been canceled.voidcompiled(SourceFile unit) Notification while within a compile that a unit has finished being compiled.voiddone()protected StringReturns a string describing the problems.static voidvoidsetCancelling(boolean cancelling) Sets the cancelling flag, which indicates we are in the middle of being cancelled.voidsetProgressPerCompilationUnit(float progress) Sets the amount of progress to report for compiling each compilation unit.voidprotected voidupdateProblemCounts(CategorizedProblem[] newProblems) protected voidupdateProblemCounts(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.voidupdateProgress(float newPercentComplete) voidupdateProgressDelta(float percentWorked)
-
Constructor Details
-
AjBuildNotifier
public AjBuildNotifier(org.eclipse.core.runtime.IProgressMonitor monitor, int buildKind, BooleanSupplier interruptSupplier) - Parameters:
monitor-project-
-
-
Method Details
-
setText
- Specified by:
setTextin interfaceIProgressListener- Parameters:
text- the current phase of processing
-
setProgress
public void setProgress(double percentDone) - Specified by:
setProgressin interfaceIProgressListener- Parameters:
percentDone- how much work is completed so far
-
setCancelledRequested
public void setCancelledRequested(boolean cancelRequested) - Specified by:
setCancelledRequestedin interfaceIProgressListener- Parameters:
cancelRequested- true if the caller wants the current compilation to stop asap
-
isCancelledRequested
public boolean isCancelledRequested()- Specified by:
isCancelledRequestedin interfaceIProgressListener- Returns:
- true if the consumer of the progress info would like the compileation to stop
-