Package com.nomagic.magicdraw.task
Class BackgroundTaskRunner
java.lang.Object
com.nomagic.magicdraw.task.BackgroundTaskRunner
Runs task with progress status in background.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
runWithProgressStatus
(RunnableWithProgress runnable, String description, boolean allowCancel) Executes runnable with progress status in background.
-
Constructor Details
-
BackgroundTaskRunner
public BackgroundTaskRunner()
-
-
Method Details
-
runWithProgressStatus
public static void runWithProgressStatus(RunnableWithProgress runnable, String description, boolean allowCancel) Executes runnable with progress status in background. All runtime exceptions from runnable are thrown from this method.- Parameters:
runnable
- runnable actually performing the task.description
- task description.allowCancel
- true if cancel should be enabled.- See Also:
-