Class MidiSynthManager.CopyMidiSynthsTask

java.lang.Object
org.jjazz.outputsynth.api.MidiSynthManager.CopyMidiSynthsTask
All Implemented Interfaces:
StartupTask
Enclosing class:
MidiSynthManager

public static class MidiSynthManager.CopyMidiSynthsTask extends Object implements StartupTask
Copy the default Midi files in the app config directory.

Could be an UpgradeTask since it should be executed only upon fresh start. But we use a StartupTask because a user dialog might be used.

  • Field Details

  • Constructor Details

    • CopyMidiSynthsTask

      public CopyMidiSynthsTask()
  • Method Details

    • run

      public boolean run()
      Description copied from interface: StartupTask
      This method is called upon startup when UI is ready.

      Specified by:
      run in interface StartupTask
      Returns:
      True if successfully completed task.
    • getPriority

      public int getPriority()
      Description copied from interface: StartupTask
      Get the priority of the task.

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

      Specified by:
      getPriority in interface StartupTask
      Returns:
    • getName

      public String getName()
      Description copied from interface: StartupTask
      Name of the task.

      For logging.

      Specified by:
      getName in interface StartupTask
      Returns: