Interface PlatformHook.NativeOsCallback

All Known Implementing Classes:
MainApplication.DefaultNativeOsCallback
Enclosing interface:
PlatformHook

public static interface PlatformHook.NativeOsCallback
Called when interfacing with native OS functions. Currently only used with macOS. The callback must perform all GUI-related tasks associated to an OS request. The non-GUI, platform-specific tasks, are usually performed by the PlatformHook.
Since:
12695
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    macOS: Called when JOSM is asked to show it's about dialog.
    void
    macOS: Called when JOSM is asked to show it's preferences UI.
    boolean
    macOS: Invoked when JOSM is asked to quit.
    void
    macOS: Called when JOSM is asked to open a list of files.
  • Method Details

    • openFiles

      void openFiles(List<File> files)
      macOS: Called when JOSM is asked to open a list of files.
      Parameters:
      files - list of files to open
    • handleQuitRequest

      macOS: Invoked when JOSM is asked to quit.
      Returns:
      true if JOSM has been closed, false if the user has cancelled the operation.
    • handleAbout

      void handleAbout()
      macOS: Called when JOSM is asked to show it's about dialog.
    • handlePreferences

      macOS: Called when JOSM is asked to show it's preferences UI.