Class MagicDrawProgressStatusRunner

java.lang.Object
com.nomagic.magicdraw.ui.MagicDrawProgressStatusRunner

@OpenApiAll public class MagicDrawProgressStatusRunner extends Object
Runs MagicDraw related task with progress status.
See Also:
  • Constructor Details

    • MagicDrawProgressStatusRunner

      public MagicDrawProgressStatusRunner()
  • Method Details

    • runWithProgressStatus

      public static void runWithProgressStatus(RunnableWithProgress runnable, String description, boolean allowCancel, int millisToShow)
      Executes runnable with progress status. MagicDraw UI environment is locked (not updated) during execution, it is updated when task finishes. All runtime exceptions from runnable are thrown from this method.
      Parameters:
      runnable - runnable actually performing the task
      description - title of progress bar
      allowCancel - true if cancel should be enabled
      millisToShow - amount of time before progress is displayed. Pass 0 if progress should be displayed without delay
      See Also:
    • runWithProgressStatus

      public static void runWithProgressStatus(Project project, RunnableWithProgress runnable, String description, boolean allowCancel, int millisToShow)
      Executes runnable with progress status. MagicDraw UI environment is locked (not updated) during execution, diagrams in the given project are not repainted. Everything is updated when task finishes. All runtime exceptions from runnable are thrown from this method.
      Parameters:
      project - active project
      runnable - runnable actually performing the task
      description - title of progress bar
      allowCancel - true if cancel should be enabled
      millisToShow - amount of time before progress is displayed. Pass 0 if progress should be displayed without delay
      See Also: