Package com.nomagic.ui
Class ProgressMonitorHelper
java.lang.Object
com.nomagic.ui.ProgressMonitorHelper
Helper class to use MagicDraw progress status bar.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidexecuteWithProgress(RunnableWithProgress run, String description, boolean allowCancel, int millisToShowProgress) Executes runnable task with progress.
-
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.
-