Package org.openstreetmap.josm.tools
Class PlatformManager
- java.lang.Object
-
- org.openstreetmap.josm.tools.PlatformManager
-
public final class PlatformManager extends java.lang.Object
Holder for current platform hook.- Since:
- 14138
-
-
Field Summary
Fields Modifier and Type Field Description private static PlatformHookPLATFORMPlatform specific code goes in here.
-
Constructor Summary
Constructors Modifier Constructor Description privatePlatformManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PlatformHookgetPlatform()Returns the current platform hook.static booleanisPlatformOsx()Determines if we are currently running on macOS.static booleanisPlatformUnixoid()Determines if we are currently running on an Unix system.static booleanisPlatformWindows()Determines if we are currently running on Windows.
-
-
-
Field Detail
-
PLATFORM
private static final PlatformHook PLATFORM
Platform specific code goes in here.
-
-
Constructor Detail
-
PlatformManager
private PlatformManager()
-
-
Method Detail
-
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:
trueif we are currently running on macOS
-
isPlatformUnixoid
public static boolean isPlatformUnixoid()
Determines if we are currently running on an Unix system.- Returns:
trueif we are currently running on an Unix system
-
isPlatformWindows
public static boolean isPlatformWindows()
Determines if we are currently running on Windows.- Returns:
trueif we are currently running on Windows
-
-