export core from swing interface
[jSite2.git] / src / net / pterodactylus / jsite / gui / SwingInterface.java
index cb5d24c..edcc0df 100644 (file)
@@ -74,11 +74,29 @@ public class SwingInterface implements CoreListener {
        //
 
        /**
+        * Returns the core that is controlled by the Swing interface.
+        * 
+        * @return The core
+        */
+       Core getCore() {
+               return core;
+       }
+
+       /**
+        * Returns the main window of the Swing interface.
+        * 
+        * @return The main window
+        */
+       MainWindow getMainWindow() {
+               return mainWindow;
+       }
+
+       /**
         * Returns the “manage nodes” action.
         * 
         * @return The “manage nodes” action
         */
-       public Action getManageNodesAction() {
+       Action getManageNodesAction() {
                return manageNodesAction;
        }
 
@@ -87,7 +105,7 @@ public class SwingInterface implements CoreListener {
         * 
         * @return The “connect to node” action
         */
-       public Action getNodeConnectAction() {
+       Action getNodeConnectAction() {
                return nodeConnectAction;
        }
 
@@ -96,7 +114,7 @@ public class SwingInterface implements CoreListener {
         * 
         * @return The “disconnect from node” action
         */
-       public Action getNodeDisconnectAction() {
+       Action getNodeDisconnectAction() {
                return nodeDisconnectAction;
        }
 
@@ -157,7 +175,7 @@ public class SwingInterface implements CoreListener {
         * Initializes all child dialogs.
         */
        private void initDialogs() {
-               manageNodesDialog = new ManageNodesDialog(mainWindow);
+               manageNodesDialog = new ManageNodesDialog(this);
        }
 
        /**