Interface OperatingSystemSPI

    • Method Detail

      • getJavaRuntimeSupportVersion

        String getJavaRuntimeSupportVersion()
        Version string for the JavaRuntimeSupportVersion.framework, available only on macOS.
        Returns:
        version or "unknown", if not known.
      • getLocalApplicationSupportDirectory

        Path getLocalApplicationSupportDirectory()
        Local app data folder. ~/Library/Application Support on macOS, ~\AppData\Local on Vista, ~\Local Settings\Application Data on Windows XP.
        Returns:
        local app data folder
      • getUsersMusicDirectory

        Path getUsersMusicDirectory()
        User's music folder. ~/Music on macOS, ~\Music on Vista/Win7, ~\My Documents\My Music on Windows XP.
        Returns:
        user's music folder
      • getDesktopDirectory

        Path getDesktopDirectory()
        User's desktop directory.
        Returns:
        desktop directory
      • getExternalApplications

        OperatingSystem.ExternalApplication[] getExternalApplications​(URL url)
        Lists the available applications for the given URL.
        Parameters:
        url - url
        Returns:
        list of applications - the first one should be the default application
      • setThreadPriority

        void setThreadPriority​(int priority)
        Tries to force-set the given thread priority using native APIs.
        Parameters:
        priority - priority
      • getSystemAppearance

        String getSystemAppearance()
        Return the name of the system appearance.
        Returns:
        appearance name
      • showInFileBrowser

        default void showInFileBrowser​(Path file)
                                throws IOException
        Fallback implementation.
        Parameters:
        file - file
        Throws:
        IOException - exception