Package org.openstreetmap.josm.tools
Class PlatformManager
java.lang.Object
org.openstreetmap.josm.tools.PlatformManager
Holder for current platform hook.
- Since:
- 14138
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final PlatformHookPlatform specific code goes in here. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PlatformHookReturns the current platform hook.static booleanDetermines if we are currently running on macOS.static booleanDetermines if we are currently running on an Unix system.static booleanDetermines if we are currently running on Windows.
-
Field Details
-
PLATFORM
Platform specific code goes in here.
-
-
Constructor Details
-
PlatformManager
private PlatformManager()
-
-
Method Details
-
getPlatform
Returns the current platform hook.- Returns:
- the current platform hook
-
isPlatformOsx
Determines if we are currently running on macOS.- Returns:
trueif we are currently running on macOS
-
isPlatformUnixoid
Determines if we are currently running on an Unix system.- Returns:
trueif we are currently running on an Unix system
-
isPlatformWindows
Determines if we are currently running on Windows.- Returns:
trueif we are currently running on Windows
-