Package org.spoutcraft.launcher.util

Examples of org.spoutcraft.launcher.util.OperatingSystem


    temp = new File(Utils.getWorkingDirectory(), "config/minecraft.yml");
    temp.delete();
  }

  private static void setLookAndFeel() {
    OperatingSystem os = OperatingSystem.getOS();
    if (os.isMac()) {
      System.setProperty("apple.laf.useScreenMenuBar", "true");
      System.setProperty("com.apple.mrj.application.apple.menu.about.name", "Spoutcraft");
    }
    try {
      UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
View Full Code Here


  private static void migrateFolders() {
    File brokenSpoutcraftDir = Utils.getWorkingDirectory("Spoutcraft");
    if (brokenSpoutcraftDir.exists()) {
      File correctSpoutcraftDir = Utils.getWorkingDirectory();
      OperatingSystem os = OperatingSystem.getOS();
      if (os.isUnix() || os.isMac()) {
        try {
          FileUtils.copyDirectory(brokenSpoutcraftDir, correctSpoutcraftDir);
          FileUtils.deleteDirectory(brokenSpoutcraftDir);
        } catch (IOException e) {
          e.printStackTrace();
View Full Code Here

TOP

Related Classes of org.spoutcraft.launcher.util.OperatingSystem

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.