From: jprocter Date: Fri, 26 Oct 2007 16:28:18 +0000 (+0000) Subject: new applet and application utility class for platform information X-Git-Tag: Release_2_4~229 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=31d4457b311d9954a2106623d318860c0c9dc151;p=jalview.git new applet and application utility class for platform information --- diff --git a/src/jalview/util/Platform.java b/src/jalview/util/Platform.java new file mode 100644 index 0000000..71ad6f7 --- /dev/null +++ b/src/jalview/util/Platform.java @@ -0,0 +1,19 @@ +package jalview.util; + +/** + * System platform information used by Applet and Application + * @author Jim Procter + */ +public class Platform +{ + /** + * sorry folks - Macs really are different + * @return true if we do things in a special way. + */ + public boolean isAMac() + { + return java.lang.System.getProperty("os.name").indexOf("Mac")>-1; + + } + +}