Class BackgroundTaskRunner

java.lang.Object
com.nomagic.magicdraw.task.BackgroundTaskRunner

@OpenApiAll public final class BackgroundTaskRunner extends Object
Runs task with progress status in background.
See Also:
  • 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: