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
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
begin()
Start the progress monitorvoid
finish(boolean wasFullBuild)
Stop the progress monitorboolean
Checks whether the user has chosen to cancel the progress monitorvoid
setProgress(double percentDone)
Sets the current progress donevoid
setProgressText(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:IBuildProgressMonitor
Stop the progress monitor- Specified by:
finish
in interfaceIBuildProgressMonitor
- 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 interfaceIBuildProgressMonitor
- 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 interfaceIBuildProgressMonitor
-
setProgressText
Description copied from interface:IBuildProgressMonitor
Sets the label describing the current progress phase.- Specified by:
setProgressText
in interfaceIBuildProgressMonitor
-
begin
public void begin()Description copied from interface:IBuildProgressMonitor
Start the progress monitor- Specified by:
begin
in interfaceIBuildProgressMonitor
-