Class ProgressMonitorHelper

java.lang.Object
com.nomagic.ui.ProgressMonitorHelper

@OpenApiAll public class ProgressMonitorHelper extends Object
Helper class to use MagicDraw progress status bar.
  • Constructor Details

    • ProgressMonitorHelper

      public ProgressMonitorHelper()
  • Method Details

    • executeWithProgress

      public static void executeWithProgress(RunnableWithProgress run, String description, boolean allowCancel, int millisToShowProgress)
      Executes runnable task with progress. All runtime exceptions from runnable will be thrown from this method.
      Parameters:
      run - runnable which will be executed during progress show.
      description - title of progress bar.
      allowCancel - true if cancel should be enabled.
      millisToShowProgress - amount of time before progress is displayed. Pass 0 if progress should be displayed without delay.