org.aspectj.ajde.ui.swing
Class DefaultBuildProgressMonitor

java.lang.Object
  extended by java.lang.Thread
      extended by org.aspectj.ajde.ui.swing.DefaultBuildProgressMonitor
All Implemented Interfaces:
java.lang.Runnable, IBuildProgressMonitor

public class DefaultBuildProgressMonitor
extends java.lang.Thread
implements IBuildProgressMonitor

This dialog box is open while ajc is compiling the system and displays a corresponding progress bar.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static java.lang.String PROGRESS_HEADING
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DefaultBuildProgressMonitor(java.awt.Frame parent)
           
 
Method Summary
 void begin()
          Start the progress monitor.
 void finish(boolean wasFullBuild)
          Jump the progress bar to the end and finish progress monitoring.
 boolean isCancelRequested()
          Checks whether the user has chosen to cancel the progress monitor
 void setProgress(double percentDone)
          Sets the current progress done
 void setProgressText(java.lang.String text)
          Sets the label describing the current progress phase.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROGRESS_HEADING

public static final java.lang.String PROGRESS_HEADING
See Also:
Constant Field Values
Constructor Detail

DefaultBuildProgressMonitor

public DefaultBuildProgressMonitor(java.awt.Frame parent)
Method Detail

begin

public void begin()
Start the progress monitor.

Specified by:
begin in interface IBuildProgressMonitor

setProgressText

public void setProgressText(java.lang.String text)
Sets the label describing the current progress phase.

Specified by:
setProgressText in interface IBuildProgressMonitor

finish

public void finish(boolean wasFullBuild)
Jump the progress bar to the end and finish progress monitoring.

Specified by:
finish in interface IBuildProgressMonitor
Parameters:
wasFullBuild - - true if was a full build, false otherwise

isCancelRequested

public boolean isCancelRequested()
Description copied from interface: IBuildProgressMonitor
Checks whether the user has chosen to cancel the progress monitor

Specified by:
isCancelRequested in interface IBuildProgressMonitor
Returns:
true if progress monitor has been cancelled and false otherwise

setProgress

public void setProgress(double percentDone)
Description copied from interface: IBuildProgressMonitor
Sets the current progress done

Specified by:
setProgress in interface IBuildProgressMonitor