From: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Date: Wed, 13 Sep 2017 09:51:44 +0200
Subject: noMacOSX

fails looking for missing classes. This patch fixes it.
Author: Gabriele Giacone <1o5g4r8o@gmail.com>
---
 src/com/eteks/sweethome3d/HomeFramePane.java         | 2 ++
 src/com/eteks/sweethome3d/SweetHome3D.java           | 5 +++--
 src/com/eteks/sweethome3d/tools/OperatingSystem.java | 6 +++++-
 3 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/com/eteks/sweethome3d/HomeFramePane.java b/src/com/eteks/sweethome3d/HomeFramePane.java
index 57fb352..56234d7 100644
--- a/src/com/eteks/sweethome3d/HomeFramePane.java
+++ b/src/com/eteks/sweethome3d/HomeFramePane.java
@@ -123,9 +123,11 @@ public class HomeFramePane extends JRootPane implements View {
       // Call setIconImage available in previous versions
       homeFrame.setIconImage(frameImages.get(0));
     }
+/*
     if (OperatingSystem.isMacOSXLionOrSuperior()) {
       MacOSXConfiguration.installToolBar(this);
     }
+ */
     updateFrameTitle(homeFrame, this.home, this.application);
     // Change component orientation
     applyComponentOrientation(ComponentOrientation.getOrientation(Locale.getDefault()));    
diff --git a/src/com/eteks/sweethome3d/SweetHome3D.java b/src/com/eteks/sweethome3d/SweetHome3D.java
index f9886aa..b4035aa 100644
--- a/src/com/eteks/sweethome3d/SweetHome3D.java
+++ b/src/com/eteks/sweethome3d/SweetHome3D.java
@@ -483,10 +483,12 @@ public class SweetHome3D extends HomeApplication {
       // Too bad we can't retrieve homes to recover
       ex.printStackTrace();
     }
+/*
     if (OperatingSystem.isMacOSX()) {
       // Bind to application menu at last
       MacOSXConfiguration.bindToApplicationMenu(this);
     }
+ */
 
     // Run everything else in Event Dispatch Thread
     EventQueue.invokeLater(new Runnable() {
@@ -594,8 +596,7 @@ public class SweetHome3D extends HomeApplication {
                 && home.getName() == null
                 && !home.isRecovered()) {
               if (OperatingSystem.isMacOSXLionOrSuperior()
-                  && OperatingSystem.isJavaVersionGreaterOrEqual("1.7")
-                  && MacOSXConfiguration.isWindowFullScreen(getHomeFrame(home))) {
+                  && OperatingSystem.isJavaVersionGreaterOrEqual("1.7")) {
                 // Delay home disposal to avoid Java 3D fatal error
                 new Timer(3000, new ActionListener() {
                     public void actionPerformed(ActionEvent ev) {
diff --git a/src/com/eteks/sweethome3d/tools/OperatingSystem.java b/src/com/eteks/sweethome3d/tools/OperatingSystem.java
index 9996ec2..0709c4d 100644
--- a/src/com/eteks/sweethome3d/tools/OperatingSystem.java
+++ b/src/com/eteks/sweethome3d/tools/OperatingSystem.java
@@ -33,7 +33,6 @@ import java.util.Timer;
 import java.util.TimerTask;
 import java.util.UUID;
 
-import com.apple.eio.FileManager;
 import com.eteks.sweethome3d.model.Home;
 
 /**
@@ -432,9 +431,12 @@ public class OperatingSystem {
    */
   public static File getDefaultApplicationFolder() throws IOException {
     File userApplicationFolder; 
+/*
     if (isMacOSX()) {
       userApplicationFolder = new File(MacOSXFileManager.getApplicationSupportFolder());
     } else if (isWindows()) {
+ */
+    if (isWindows()) {
       userApplicationFolder = new File(System.getProperty("user.home"), "Application Data");
       // If user Application Data directory doesn't exist, use user home
       if (!userApplicationFolder.exists()) {
@@ -455,10 +457,12 @@ public class OperatingSystem {
    * This class requires some classes of <code>com.apple.eio</code> package  
    * to compile.
    */
+/*
   private static class MacOSXFileManager {
     public static String getApplicationSupportFolder() throws IOException {
       // Find application support folder (0x61737570) for user domain (-32763)
       return FileManager.findFolder((short)-32763, 0x61737570);
     }
   }
+ */
 }
