|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.jdeveloper.vcs.spi.VCSWaitRunnable
public abstract class VCSWaitRunnable
Abstract runnable class for long running tasks, designed to be run on a temporary thread. This utility superclass provides validation of options customizer state, a wait cursor for the duration of the task, exception handling and indeterminate progress monitor management. It also features a SwingWorker-like facility for performing operations on the AWT event thread when the task has completed.
Constructor Summary | |
---|---|
VCSWaitRunnable() Constructor. |
|
VCSWaitRunnable(VCSExceptionHandler exceptionHandler) Constructor. |
|
VCSWaitRunnable(VCSExceptionHandler exceptionHandler, VCSOptionsCustomizer optionsCustomizer) Constructor. |
Method Summary | |
---|---|
java.lang.Exception |
getException() Gets the exception thrown during the task execution, if any. |
IndeterminateProgressMonitor |
getIndeterminateProgressMonitor() Gets the progress monitor. |
protected java.util.Map<?,?> |
getOptions() Gets options from the customizer, for convenience. |
void |
run() |
protected abstract void |
runImpl() Performs the runnable task. |
protected void |
runPostOperationAWT() Performs post-operations on the AWT event thread. |
void |
setIndeterminateProgressMonitor(IndeterminateProgressMonitor progressMonitor) Sets the progress monitor, which will be started and closed during the task execution. |
VCSOptionsCustomizer |
setOptionsCustomizer() Gets the options customizer. |
void |
setOptionsCustomizer(VCSOptionsCustomizer optionsCustomizer) Sets the options customizer, which will be validated before the task is run. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VCSWaitRunnable()
public VCSWaitRunnable(VCSExceptionHandler exceptionHandler)
exceptionHandler
- the exception handler to use.public VCSWaitRunnable(VCSExceptionHandler exceptionHandler, VCSOptionsCustomizer optionsCustomizer)
exceptionHandler
- the exception handler to use.optionsCustomizer
- the options customizer to validate.Method Detail |
---|
public void setIndeterminateProgressMonitor(IndeterminateProgressMonitor progressMonitor)
progressMonitor
- the progress monitor.public IndeterminateProgressMonitor getIndeterminateProgressMonitor()
public void setOptionsCustomizer(VCSOptionsCustomizer optionsCustomizer)
optionsCustomizer
- the options customizer.public VCSOptionsCustomizer setOptionsCustomizer()
public java.lang.Exception getException()
public void run()
run
in interface java.lang.Runnable
protected abstract void runImpl() throws java.lang.Exception
java.lang.Exception
protected void runPostOperationAWT() throws java.lang.Exception
java.lang.Exception
protected final java.util.Map<?,?> getOptions()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |