diff --git a/Ipscan.iml b/Ipscan.iml
index 895c6862..4e9cd153 100644
--- a/Ipscan.iml
+++ b/Ipscan.iml
@@ -9,7 +9,6 @@
-
diff --git a/build.xml b/build.xml
index b46bada9..51a6bab2 100755
--- a/build.xml
+++ b/build.xml
@@ -114,7 +114,6 @@
-
diff --git a/src-platform/linux/.gitignore b/src-platform/linux/.gitignore
deleted file mode 100644
index e69de29b..00000000
diff --git a/src-platform/linux64/.gitignore b/src-platform/linux64/.gitignore
deleted file mode 100644
index e69de29b..00000000
diff --git a/src-platform/win32/.gitignore b/src-platform/win32/.gitignore
deleted file mode 100644
index e69de29b..00000000
diff --git a/src-platform/win64/.gitignore b/src-platform/win64/.gitignore
deleted file mode 100644
index e69de29b..00000000
diff --git a/src/net/azib/ipscan/config/ComponentRegistry.java b/src/net/azib/ipscan/config/ComponentRegistry.java
index 0e09a514..50e297a7 100644
--- a/src/net/azib/ipscan/config/ComponentRegistry.java
+++ b/src/net/azib/ipscan/config/ComponentRegistry.java
@@ -29,8 +29,6 @@ import org.picocontainer.defaults.ComponentParameter;
import org.picocontainer.defaults.ConstantParameter;
import org.picocontainer.defaults.DefaultPicoContainer;
-import java.util.logging.Logger;
-
/**
* This class is the dependency injection configuration using the Pico Container.
*
@@ -130,8 +128,9 @@ public class ComponentRegistry {
new ComponentParameter("mainShell"), new ComponentParameter("mainMenu"),
new ComponentParameter("commandsMenu"), anyComponentParameter, new ConstantParameter(container) });
container.registerComponentImplementation(MainMenu.ColumnsMenu.class, MainMenu.ColumnsMenu.class,
- new Parameter[] { new ComponentParameter("mainShell"), anyComponentParameter, anyComponentParameter,
- anyComponentParameter });
+ new Parameter[] { new ComponentParameter("mainShell"), anyComponentParameter, anyComponentParameter, anyComponentParameter });
+ if (Platform.MAC_OS)
+ container.registerComponentImplementation(MacApplicationMenu.class);
container.registerComponentImplementation(AboutDialog.class);
container.registerComponentImplementation(PreferencesDialog.class);
@@ -152,17 +151,6 @@ public class ComponentRegistry {
container.registerComponentImplementation(ToolsActions.ChooseFetchers.class);
container.registerComponentImplementation(HelpMenuActions.CheckVersion.class);
- if (Platform.MAC_OS) {
- // initialize mac-specific stuff
- try {
- container.registerComponentImplementation(Class
- .forName("net.azib.ipscan.platform.mac.MacApplicationMenu"));
- }
- catch (Exception e) {
- Logger.getLogger(getClass().getName()).warning("Cannot initialize MacApplicationMenu: " + e);
- }
- }
-
new PluginLoader().addTo(container);
}
@@ -184,5 +172,4 @@ public class ComponentRegistry {
start();
return (CommandLineProcessor) container.getComponentInstance(CommandLineProcessor.class);
}
-
}
diff --git a/src-platform/mac/net/azib/ipscan/platform/mac/MacApplicationMenu.java b/src/net/azib/ipscan/gui/MacApplicationMenu.java
similarity index 94%
rename from src-platform/mac/net/azib/ipscan/platform/mac/MacApplicationMenu.java
rename to src/net/azib/ipscan/gui/MacApplicationMenu.java
index 865350e6..b3e1d161 100644
--- a/src-platform/mac/net/azib/ipscan/platform/mac/MacApplicationMenu.java
+++ b/src/net/azib/ipscan/gui/MacApplicationMenu.java
@@ -1,9 +1,6 @@
-package net.azib.ipscan.platform.mac;
+package net.azib.ipscan.gui;
import net.azib.ipscan.config.Labels;
-import net.azib.ipscan.gui.AboutDialog;
-import net.azib.ipscan.gui.PreferencesDialog;
-import net.azib.ipscan.gui.SelectFetchersDialog;
import net.azib.ipscan.gui.actions.HelpMenuActions.CheckVersion;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;