1 33 34 package edu.rice.cs.drjava.platform; 35 36 42 public class PlatformFactory { 43 44 47 public static final PlatformSupport ONLY = getPlatformSupport(); 48 49 52 private static PlatformSupport getPlatformSupport() { 53 54 String os = System.getProperty("os.name").toLowerCase(); 56 57 if (os.startsWith("mac os x")) return MacPlatform.ONLY; 58 else if (os.startsWith("windows")) return WindowsPlatform.ONLY; 59 else return DefaultPlatform.ONLY; 60 } 61 } 62 | Popular Tags |