Package com.nomagic.ui
Class ProgressMonitorHelper
- java.lang.Object
-
- com.nomagic.ui.ProgressMonitorHelper
-
@OpenApiAll public class ProgressMonitorHelper extends java.lang.Object
Helper class to use MagicDraw progress status bar.
-
-
Constructor Summary
Constructors Constructor Description ProgressMonitorHelper()
-
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.
-
-
-
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.
-
-