org.aspectj.tools.ajbrowser.core
Class BrowserBuildProgressMonitor

java.lang.Object
  extended by java.lang.Thread
      extended by org.aspectj.tools.ajbrowser.core.BrowserBuildProgressMonitor
All Implemented Interfaces:
java.lang.Runnable, IBuildProgressMonitor

public class BrowserBuildProgressMonitor
extends java.lang.Thread
implements IBuildProgressMonitor

Build progress monitor that shows the progress in a dialog containing a JProgressBar. Also updates the progress bar at the bottom of AjBrowser with the build progress information.


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
BrowserBuildProgressMonitor(BrowserMessageHandler handler)
           
 
Method Summary
 void begin()
          Start the progress monitor
 void finish(boolean wasFullBuild)
          Stop the progress monitor
 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, 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, 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

BrowserBuildProgressMonitor

public BrowserBuildProgressMonitor(BrowserMessageHandler handler)
Method Detail

finish

public void finish(boolean wasFullBuild)
Description copied from interface: IBuildProgressMonitor
Stop the progress monitor

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

setProgressText

public void setProgressText(java.lang.String text)
Description copied from interface: IBuildProgressMonitor
Sets the label describing the current progress phase.

Specified by:
setProgressText in interface IBuildProgressMonitor

begin

public void begin()
Description copied from interface: IBuildProgressMonitor
Start the progress monitor

Specified by:
begin in interface IBuildProgressMonitor