Class ProgressMonitorHelper


  • @OpenApiAll
    public class ProgressMonitorHelper
    extends java.lang.Object
    Helper class to use MagicDraw progress status bar.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void executeWithProgress​(RunnableWithProgress run, java.lang.String description, boolean allowCancel, int millisToShowProgress)
      Executes runnable task with progress.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProgressMonitorHelper

        public ProgressMonitorHelper()
    • Method Detail

      • executeWithProgress

        public static void executeWithProgress​(RunnableWithProgress run,
                                               java.lang.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.