/** * Whether we are running on Windows. * * @return true if we are running on Windows. */ public boolean isWindows() { if (isWindows == null) { String osDotName = getOsName(); isWindows = Boolean.valueOf(osDotName.startsWith("Windows")); //$NON-NLS-1$ } return isWindows.booleanValue(); }
/** * Whether we are running on Mac OS X * * @return true if we are running on Mac OS X */ public boolean isMacOS() { if (isMacOS == null) { String osDotName = getOsName(); isMacOS = Boolean.valueOf( "Mac OS X".equals(osDotName) || "Darwin".equals(osDotName)); //$NON-NLS-1$ //$NON-NLS-2$ } return isMacOS.booleanValue(); }
/** * Whether we are running on Windows. * * @return true if we are running on Windows. */ public boolean isWindows() { if (isWindows == null) { String osDotName = getOsName(); isWindows = Boolean.valueOf(osDotName.startsWith("Windows")); //$NON-NLS-1$ } return isWindows.booleanValue(); }
/** * @return true if we are running on a Windows. */ public boolean isWindows() { if (isWindows == null) { String osDotName = getOsName(); isWindows = Boolean.valueOf(osDotName.startsWith("Windows")); //$NON-NLS-1$ } return isWindows.booleanValue(); }
/** * @return true if we are running on Mac OS X */ public boolean isMacOS() { if (isMacOS == null) { String osDotName = getOsName(); isMacOS = Boolean.valueOf( "Mac OS X".equals(osDotName) || "Darwin".equals(osDotName)); //$NON-NLS-1$ //$NON-NLS-2$ } return isMacOS.booleanValue(); }
/** * Whether we are running on Mac OS X * * @return true if we are running on Mac OS X */ public boolean isMacOS() { if (isMacOS == null) { String osDotName = getOsName(); isMacOS = Boolean.valueOf( "Mac OS X".equals(osDotName) || "Darwin".equals(osDotName)); //$NON-NLS-1$ //$NON-NLS-2$ } return isMacOS.booleanValue(); }