Package org.aspectj.tools.ajbrowser.core
Class BrowserBuildProgressMonitor
java.lang.Object
java.lang.Thread
org.aspectj.tools.ajbrowser.core.BrowserBuildProgressMonitor
- All Implemented Interfaces:
Runnable,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
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbegin()Start the progress monitorvoidfinish(boolean wasFullBuild)Stop the progress monitorbooleanChecks whether the user has chosen to cancel the progress monitorvoidsetProgress(double percentDone)Sets the current progress donevoidsetProgressText(String text)Sets the label describing the current progress phase.Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
PROGRESS_HEADING
- See Also:
- Constant Field Values
-
-
Constructor Details
-
BrowserBuildProgressMonitor
-
-
Method Details
-
finish
public void finish(boolean wasFullBuild)Description copied from interface:IBuildProgressMonitorStop the progress monitor- Specified by:
finishin interfaceIBuildProgressMonitor- Parameters:
wasFullBuild- - true if was a full build, false otherwise
-
isCancelRequested
public boolean isCancelRequested()Description copied from interface:IBuildProgressMonitorChecks whether the user has chosen to cancel the progress monitor- Specified by:
isCancelRequestedin interfaceIBuildProgressMonitor- Returns:
- true if progress monitor has been cancelled and false otherwise
-
setProgress
public void setProgress(double percentDone)Description copied from interface:IBuildProgressMonitorSets the current progress done- Specified by:
setProgressin interfaceIBuildProgressMonitor
-
setProgressText
Description copied from interface:IBuildProgressMonitorSets the label describing the current progress phase.- Specified by:
setProgressTextin interfaceIBuildProgressMonitor
-
begin
public void begin()Description copied from interface:IBuildProgressMonitorStart the progress monitor- Specified by:
beginin interfaceIBuildProgressMonitor
-