For long lasting actions, there is a need to show a progress and run the asynchronous code.

There are two options to execute these actions:

  • a foreground task - use com.nomagic.task.RunnableWithProgress or com.nomagic.magicdraw.ui.MagicDrawProgressStatusRunner
  • a background task - use com.nomagic.magicdraw.task.BackgroundTaskRunner

 You can find the code examples in <modeling tool installation directory>\openapi\examples\progressstatus

Related pages