Package com.nomagic.magicdraw.ui
Class MagicDrawProgressStatusRunner
- java.lang.Object
-
- com.nomagic.magicdraw.ui.MagicDrawProgressStatusRunner
-
@OpenApiAll public class MagicDrawProgressStatusRunner extends java.lang.Object
Runs MagicDraw related task with progress status.- See Also:
RunnableWithProgress
,ProgressStatus
,ProgressStatusRunner
-
-
Constructor Summary
Constructors Constructor Description MagicDrawProgressStatusRunner()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
runWithProgressStatus(Project project, RunnableWithProgress runnable, java.lang.String description, boolean allowCancel, int millisToShow)
Executes runnable with progress status.static void
runWithProgressStatus(RunnableWithProgress runnable, java.lang.String description, boolean allowCancel, int millisToShow)
Executes runnable with progress status.
-
-
-
Method Detail
-
runWithProgressStatus
public static void runWithProgressStatus(RunnableWithProgress runnable, java.lang.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 taskdescription
- title of progress barallowCancel
- true if cancel should be enabledmillisToShow
- amount of time before progress is displayed. Pass 0 if progress should be displayed without delay- See Also:
RunnableWithProgress
,ProgressStatus
-
runWithProgressStatus
public static void runWithProgressStatus(Project project, RunnableWithProgress runnable, java.lang.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 projectrunnable
- runnable actually performing the taskdescription
- title of progress barallowCancel
- true if cancel should be enabledmillisToShow
- amount of time before progress is displayed. Pass 0 if progress should be displayed without delay- See Also:
RunnableWithProgress
,ProgressStatus
-
-