Package org.eclipse.core.runtime
Class Platform.OS
java.lang.Object
org.eclipse.core.runtime.Platform.OS
- Enclosing class:
Platform
Convenience class to query for the current OS.
- Since:
- 3.30
-
Method Summary
-
Method Details
-
is
- Parameters:
osString
- the identifier for the OS (use one of the constants that start withOS_
in thePlatform
class).- Returns:
true
if the current platform is the one specified as a parameter,false
in all other cases.- Since:
- 3.30
- See Also:
-
isWindows
public static boolean isWindows()- Returns:
true
if the current OS is Windows
-
isLinux
public static boolean isLinux()- Returns:
true
if the current OS is Linux
-
isMac
public static boolean isMac()- Returns:
true
if the current OS is MacOSX
-