public static interface RunOffEDTProvider.Progress extends RunOffEDTProvider
RunOffEDTProvider.Progress, RunOffEDTProvider.Progress2
Modifier and Type | Method and Description |
---|---|
<T> T |
showProgressDialogAndRun(ProgressRunnable<T> toRun,
String displayName,
boolean includeDetailLabel)
Show a modal progress dialog that blocks the main window while running
a background process.
|
void |
showProgressDialogAndRun(Runnable operation,
ProgressHandle handle,
boolean includeDetailLabel)
Show a modal progress dialog that blocks the main window while running
a background process.
|
<T> Future<T> |
showProgressDialogAndRunLater(ProgressRunnable<T> toRun,
ProgressHandle handle,
boolean includeDetailLabel)
Show a modal progress dialog that blocks the main window while running
a background process.
|
runOffEventDispatchThread
void showProgressDialogAndRun(Runnable operation, ProgressHandle handle, boolean includeDetailLabel)
The resulting progress UI should show a cancel button if the passed runnable implements org.openide.util.Cancellable.
operation
- A runnable that needs to be run with the UI blockedhandle
- A progress handle that will be updated to reflect
the progress of the operationincludeDetailLabel
- If true, a label should be provided in the progress
dialog to show detailed progress messages<T> T showProgressDialogAndRun(ProgressRunnable<T> toRun, String displayName, boolean includeDetailLabel)
The resulting progress UI should show a cancel button if the passed runnable implements org.openide.util.Cancellable.
T
- The type of the return valuetoRun
- A ProgressCallable which will be passed a progress handle
on a background thread, can do its work and (optionally) return a valuedisplayName
- The display name of the work being doneincludeDetailLabel
- Show the detail levels. Set to true if the
caller will use ProgressHandle.progress (String, int) to provide
detailed progress messages<T> Future<T> showProgressDialogAndRunLater(ProgressRunnable<T> toRun, ProgressHandle handle, boolean includeDetailLabel)
The resulting progress UI should show a cancel button if the passed runnable implements org.openide.util.Cancellable.
toRun
- The operation to runhandle
- A progress handleincludeDetailLabel
- Whether or not to include a detail label