org.aspectj.org.eclipse.jdt.internal.core.builder
Class BuildNotifier

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.core.builder.BuildNotifier
Direct Known Subclasses:
AjBuildNotifier

public class BuildNotifier
extends java.lang.Object


Field Summary
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 Summary
BuildNotifier(IProgressMonitor monitor, IProject project)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

monitor

protected IProgressMonitor monitor

cancelling

protected 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

protected java.lang.String previousSubtask

NewErrorCount

public static int NewErrorCount

FixedErrorCount

public static int FixedErrorCount

NewWarningCount

public static int NewWarningCount

FixedWarningCount

public static int FixedWarningCount
Constructor Detail

BuildNotifier

public BuildNotifier(IProgressMonitor monitor,
                     IProject project)
Method Detail

resetProblemCounters

public static void resetProblemCounters()

aboutToCompile

public void aboutToCompile(SourceFile unit)
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

public void compiled(SourceFile unit)
Notification while within a compile that a unit has finished being compiled.


done

public void done()

problemsMessage

protected java.lang.String 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

public void subTask(java.lang.String message)

updateProblemCounts

protected void updateProblemCounts(CategorizedProblem[] newProblems)

updateProblemCounts

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.


updateProgress

public void updateProgress(float newPercentComplete)

updateProgressDelta

public void updateProgressDelta(float percentWorked)