Class PlatformUtil


  • public class PlatformUtil
    extends Object
    Defines some helper methods to find the correct platform.
    Author:
    Markus Bernhardt, Copyright 2016, Bernd Rosstauscher, Copyright 2009
    • Constructor Detail

      • PlatformUtil

        public PlatformUtil()
    • Method Detail

      • getCurrentPlattform

        public static PlatformUtil.Platform getCurrentPlattform()
        Gets the platform we are currently running on.
        Returns:
        a platform code.
      • getDefaultBrowser

        public static PlatformUtil.Browser getDefaultBrowser()
        Gets the ID for the platform default browser.
        Returns:
        a browser ID, null if no supported browser was detected.
      • getCurrentDesktop

        public static PlatformUtil.Desktop getCurrentDesktop()
        Gets the desktop that we are running on.
        Returns:
        the desktop identifier.
      • getUserHomeDir

        public static String getUserHomeDir()
        Gets the user home directory where normally all the settings are stored.
        Returns:
        the path to the home directory.