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 Detail

      • 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

        boolean 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

        void handlePreferences()
        macOS: Called when JOSM is asked to show it's preferences UI.