Interface OnShowingTask

All Known Implementing Classes:
OnStartMessageNotifier.ShowMessagesTask, StartupShutdownSongManager.OpenFilesAtStartupTask

public interface OnShowingTask
A startup task which will be executed by StartupManager in priority ascending order when Netbeans UI is ready.

NOTE: OnShowingTasks are run one by one in a dedicated thread, so they can be (reasonably) long. The @onShowing position attribute also allows ordering but it executes tasks on the EDT so tasks must be short.

  • Method Summary

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

    • run

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

      NOTE: call is made on a dedicated thread which is not the EDT: if your task updates UI using e.g. SwingUtilities.invokeLater() might be required in some cases.

    • getPriority

      int getPriority()
      Get the priority of the task.

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

      Returns:
    • getName

      String getName()
      Name of the task.

      Used for logging.

      Returns: