|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectesmska.utils.RuntimeUtils
public class RuntimeUtils
Methods for detecting current runtime environment (operating system, java version).
Nested Class Summary | |
---|---|
static class |
RuntimeUtils.OSType
Enum of operating system types |
Constructor Summary | |
---|---|
RuntimeUtils()
|
Method Summary | ||
---|---|---|
static RuntimeUtils.OSType |
detectOS()
Detect type of current OS |
|
static java.lang.String |
getSystemInfo()
Get basic information about current system. |
|
static boolean |
isAppleJava()
Checks whether the current Java implementation is Apple Java |
|
static boolean |
isGnome3Desktop()
Check whether current desktop environment is Gnome 3.x |
|
static boolean |
isGnomeDesktop()
Check whether current desktop environment is Gnome |
|
static boolean |
isKDEDesktop()
Check whether current desktop environment is KDE |
|
static boolean |
isLinux()
Check whether current OS is Linux |
|
static boolean |
isMac()
Check whether current OS is Mac |
|
static boolean |
isOpenJDK()
Checks whether the current Java implementation is OpenJDK |
|
static boolean |
isOracleJava()
Checks whether the current Java implementation is Oracle Java |
|
static boolean |
isRunAsWebStart()
Whether the program is run as Java WebStart or not |
|
static boolean |
isSupportedJava()
Checks whether the current Java implementation is supported. |
|
static boolean |
isWindows()
Check whether current OS is Windows |
|
static void |
setDocumentModalDialog(javax.swing.JDialog dialog)
Set dialog to be document modal and set property so it will look as native modal dialog on Mac (has no effect on other platforms). |
|
static
|
sortDialogOptions(T... options)
|
|
static
|
sortOptions(T... options)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RuntimeUtils()
Method Detail |
---|
public static RuntimeUtils.OSType detectOS()
public static boolean isLinux()
public static boolean isMac()
public static boolean isWindows()
public static boolean isGnomeDesktop()
public static boolean isKDEDesktop()
public static boolean isGnome3Desktop()
public static boolean isOracleJava()
public static boolean isOpenJDK()
public static boolean isAppleJava()
public static boolean isSupportedJava()
public static boolean isRunAsWebStart()
public static java.lang.String getSystemInfo()
public static <T> T[] sortDialogOptions(T... options)
public static <T> T[] sortOptions(T... options)
public static void setDocumentModalDialog(javax.swing.JDialog dialog)
dialog
- dialog which should be document modal and Mac native
looking (only on Mac)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |