public class Platform
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Platform.SpecialMacHandler
Handler for events from the Application Menu on MacOS.
|
Constructor and Description |
---|
Platform() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getHostInfo()
Return information on this computer.
|
static java.lang.String |
getJavaRuntimeName() |
static boolean |
isMac()
Check if the platform is Mac OS X.
|
static boolean |
isUnix()
Check if the platform is Unix.
|
static boolean |
isWindows()
Check if the platform is Windows.
|
static boolean |
openInExternalBrowser(java.net.URL url)
Try to open a URL in en external browser.
|
static void |
registerSpecialMacHandler(Platform.SpecialMacHandler handler)
Register handler for events from the Application Menu on MacOS.
|
public static java.lang.String getJavaRuntimeName()
public static java.lang.String getHostInfo()
public static boolean isMac()
public static boolean isUnix()
public static boolean isWindows()
public static boolean openInExternalBrowser(java.net.URL url)
url
- URL to open.public static void registerSpecialMacHandler(Platform.SpecialMacHandler handler)
handler
- Handler to register.