From 31d4457b311d9954a2106623d318860c0c9dc151 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 26 Oct 2007 16:28:18 +0000 Subject: [PATCH] new applet and application utility class for platform information --- src/jalview/util/Platform.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/jalview/util/Platform.java 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; + + } + +} -- 1.7.10.2