01: package org.openjump.core;
02:
03: /**
04: *
05: * @author sstein
06: * contains methods to check the operating system
07: *
08: */
09: public class CheckOS {
10:
11: /**
12: * taken from http://developer.apple.com/technotes/tn2002/tn2110.html
13: * @return returns true if the Operating System of the computer is a Mac-OS X
14: */
15: public static boolean isMacOsx() {
16: String lcOSName = System.getProperty("os.name").toLowerCase();
17: boolean MAC_OS_X = lcOSName.startsWith("mac os x");
18: return MAC_OS_X;
19: }
20:
21: }
|