Interface CommandLineAction

All Known Implementing Classes:
ProjectCommandLineAction

@OpenApiAll public interface CommandLineAction
Action allows to execute custom task in application command line mode. It must be registered via CommandLineActionManager.addAction(CommandLineAction).
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    byte
    execute(String[] args)
    Implement this method to execute custom task in running MagicDraw application environment.
    static void
    Print to commandline console.
  • Method Details

    • execute

      byte execute(String[] args)
      Implement this method to execute custom task in running MagicDraw application environment.
      Returns:
      application exit status.
    • printToCommandLineConsole

      static void printToCommandLineConsole(String text)
      Print to commandline console. Do not use System.out since it might be redirected to log.
      Parameters:
      text - test to print