Interface StartupTask

All Known Implementing Classes:
MidiSynthManager.CopyMidiSynthsTask, StartupShutdownSongManager.OpenFilesAtStartupTask

public interface StartupTask
A startup task.

If order of execution does not matter, you can use @OnShowing instead.

  • Method Summary

    Modifier and Type
    Method
    Description
    Name of the task.
    int
    Get the priority of the task.
    boolean
    run()
    This method is called upon startup when UI is ready.
  • Method Details

    • run

      boolean run()
      This method is called upon startup when UI is ready.

      Returns:
      True if successfully completed task.
    • getPriority

      int getPriority()
      Get the priority of the task.

      When UI is ready tasks are executed one after the other by priority ascending order.

      Returns:
    • getName

      String getName()
      Name of the task.

      For logging.

      Returns: