Example usage for org.apache.commons.lang SystemUtils IS_OS_WINDOWS_2000

List of usage examples for org.apache.commons.lang SystemUtils IS_OS_WINDOWS_2000

Introduction

In this page you can find the example usage for org.apache.commons.lang SystemUtils IS_OS_WINDOWS_2000.

Prototype

boolean IS_OS_WINDOWS_2000

To view the source code for org.apache.commons.lang SystemUtils IS_OS_WINDOWS_2000.

Click Source Link

Document

Is true if this is Windows 2000.

The field will return false if OS_NAME is null.

Usage

From source file:org.openmicroscopy.shoola.util.ui.UIUtilities.java

/**
 * Returns <code>true</code> if the OS is Windows, <code>false</code>
 * otherwise./*w w  w . j av  a  2  s  .  co m*/
 * 
 * @return See above.
 */
public static boolean isWindowsOS() {
    //String osName = System.getProperty("os.name").toLowerCase();
    //return osName.startsWith("windows");
    return (SystemUtils.IS_OS_WINDOWS || SystemUtils.IS_OS_WINDOWS_2000 || SystemUtils.IS_OS_WINDOWS_7
            || SystemUtils.IS_OS_WINDOWS_95 || SystemUtils.IS_OS_WINDOWS_98 || SystemUtils.IS_OS_WINDOWS_ME
            || SystemUtils.IS_OS_WINDOWS_NT || SystemUtils.IS_OS_WINDOWS_VISTA || SystemUtils.IS_OS_WINDOWS_XP);
}