Package org.openstreetmap.josm.tools

Examples of org.openstreetmap.josm.tools.PlatformHookUnixoid$LinuxReleaseInfo


  protected static void determinePlatformHook() {
    String os = System.getProperty("os.name");
    if (os == null) {
      System.err
          .println("Your operating system has no name, so I'm guessing its some kind of *nix.");
      platform = new PlatformHookUnixoid();
    } else if (os.toLowerCase().startsWith("windows")) {
      platform = new PlatformHookWindows();
    } else if (os.equals("Linux") || os.equals("Solaris")
        || os.equals("SunOS") || os.equals("AIX")
        || os.equals("FreeBSD") || os.equals("NetBSD")
        || os.equals("OpenBSD")) {
      platform = new PlatformHookUnixoid();
    } else if (os.toLowerCase().startsWith("mac os x")) {
      platform = new PlatformHookOsx();
    } else {
      System.err.println("I don't know your operating system '" + os
          + "', so I'm guessing its some kind of *nix.");
      platform = new PlatformHookUnixoid();
    }
  }
View Full Code Here


     */
    public static void determinePlatformHook() {
        String os = System.getProperty("os.name");
        if (os == null) {
            warn("Your operating system has no name, so I'm guessing its some kind of *nix.");
            platform = new PlatformHookUnixoid();
        } else if (os.toLowerCase().startsWith("windows")) {
            platform = new PlatformHookWindows();
        } else if ("Linux".equals(os) || "Solaris".equals(os) ||
                "SunOS".equals(os) || "AIX".equals(os) ||
                "FreeBSD".equals(os) || "NetBSD".equals(os) || "OpenBSD".equals(os)) {
            platform = new PlatformHookUnixoid();
        } else if (os.toLowerCase().startsWith("mac os x")) {
            platform = new PlatformHookOsx();
        } else {
            warn("I don't know your operating system '"+os+"', so I'm guessing its some kind of *nix.");
            platform = new PlatformHookUnixoid();
        }
    }
View Full Code Here

TOP

Related Classes of org.openstreetmap.josm.tools.PlatformHookUnixoid$LinuxReleaseInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.