Class PlatformManager

java.lang.Object
org.openstreetmap.josm.tools.PlatformManager

public final class PlatformManager extends Object
Holder for current platform hook.
Since:
14138
  • Field Details

  • Constructor Details

  • Method Details

    • getPlatform

      public static PlatformHook getPlatform()
      Returns the current platform hook.
      Returns:
      the current platform hook
    • isPlatformOsx

      public static boolean isPlatformOsx()
      Determines if we are currently running on macOS.
      Returns:
      true if we are currently running on macOS
    • isPlatformUnixoid

      public static boolean isPlatformUnixoid()
      Determines if we are currently running on an Unix system.
      Returns:
      true if we are currently running on an Unix system
    • isPlatformWindows

      public static boolean isPlatformWindows()
      Determines if we are currently running on Windows.
      Returns:
      true if we are currently running on Windows