Package org.aspectj.ajde.ui.swing
Class DefaultBuildProgressMonitor
java.lang.Object
java.lang.Thread
org.aspectj.ajde.ui.swing.DefaultBuildProgressMonitor
- All Implemented Interfaces:
Runnable
,IBuildProgressMonitor
This dialog box is open while ajc is compiling the system and displays
a corresponding progress bar.
- Author:
- Mik Kersten
-
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 monitor.void
finish(boolean wasFullBuild)
Jump the progress bar to the end and finish progress monitoring.boolean
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
-
DefaultBuildProgressMonitor
-
-
Method Details
-
begin
public void begin()Start the progress monitor.- Specified by:
begin
in interfaceIBuildProgressMonitor
-
setProgressText
Sets the label describing the current progress phase.- Specified by:
setProgressText
in interfaceIBuildProgressMonitor
-
finish
public void finish(boolean wasFullBuild)Jump the progress bar to the end and finish progress monitoring.- 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
-