add more events to core listener
[jSite2.git] / src / net / pterodactylus / jsite / gui / SwingInterface.java
index a14cd7e..2f6f965 100644 (file)
@@ -504,6 +504,7 @@ public class SwingInterface implements CoreListener {
         * Imports old jSite configuration.
         */
        private void importConfig() {
+               /* TODO */
        }
 
        /**
@@ -527,12 +528,14 @@ public class SwingInterface implements CoreListener {
         * Connects to the node.
         */
        private void nodeConnect() {
+               /* TODO */
        }
 
        /**
         * Disconnects from the node.
         */
        private void nodeDisconnect() {
+               /* TODO */
        }
 
        /**
@@ -571,12 +574,14 @@ public class SwingInterface implements CoreListener {
         * Clones a project.
         */
        private void cloneProject() {
+               /* TODO */
        }
 
        /**
         * Deletes a project.
         */
        private void deleteProject() {
+               /* TODO */
        }
 
        //
@@ -586,36 +591,60 @@ public class SwingInterface implements CoreListener {
        /**
         * {@inheritDoc}
         */
-       public void loadingProjectsFailed(String directory) {
+       public void loadingProjectsFailed(String directory, Throwable throwable) {
                JOptionPane.showMessageDialog(mainWindow, I18n.get("mainWindow.error.projectLoadingFailed.message", directory), I18n.get("mainWindow.error.projectLoadingFailed.title"), JOptionPane.ERROR_MESSAGE);
        }
 
        /**
         * {@inheritDoc}
         */
+       public void savingProjectsDone(String directory) {
+               mainWindow.setStatusBarText(I18n.get("mainWindow.statusBar.projectSavingDone"));
+       }
+
+       /**
+        * {@inheritDoc}
+        */
+       public void savingProjectsFailed(String directory, Throwable throwabled) {
+               /* TODO */
+       }
+
+       /**
+        * {@inheritDoc}
+        */
        public void coreLoaded() {
                this.nodeList = core.getNodes();
                manageNodesDialog.setNodeList(nodeList);
                mainWindow.setVisible(true);
-               mainWindow.setStatusBarText("Core loaded.");
+               mainWindow.setStatusBarText(I18n.get("mainWindow.statusBar.coreLoaded"));
+       }
+
+       /**
+        * {@inheritDoc}
+        */
+       public void coreStopped() {
+               mainWindow.setStatusBarText(I18n.get("mainWindow.statusBar.coreStopped"));
        }
 
        /**
         * {@inheritDoc}
         */
        public void nodeConnected(Node node) {
+               /* TODO */
        }
 
        /**
         * {@inheritDoc}
         */
        public void nodeConnecting(Node node) {
+               /* TODO */
        }
 
        /**
         * {@inheritDoc}
         */
        public void nodeDisconnected(Node node) {
+               /* TODO */
        }
 
 }