add status bar texts when connecting and disconnecting
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 13 May 2008 12:07:24 +0000 (12:07 +0000)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 13 May 2008 12:07:24 +0000 (12:07 +0000)
git-svn-id: http://trooper/svn/projects/jSite/trunk@859 c3eda9e8-030b-0410-8277-bc7414b0a119

src/net/pterodactylus/jsite/gui/SwingInterface.java
src/net/pterodactylus/jsite/i18n/jSite.properties
src/net/pterodactylus/jsite/i18n/jSite_de.properties

index f634fa5..65e1edd 100644 (file)
@@ -899,6 +899,7 @@ public class SwingInterface implements CoreListener, LoggingListener {
        public void nodeConnected(Node node) {
                Action nodeDisconnectAction = nodeNodeDisconnectActions.get(node);
                nodeDisconnectActions.add(nodeDisconnectAction);
+               mainWindow.setStatusBarText(I18n.get("mainWindow.statusBar.connectedToNode", node.getName(), node.getHostname(), node.getPort()));
                mainWindow.refreshNodeMenuItems();
        }
 
@@ -910,6 +911,7 @@ public class SwingInterface implements CoreListener, LoggingListener {
                nodeConnectActions.add(nodeConnectAction);
                Action nodeDisconnectAction = nodeNodeDisconnectActions.get(node);
                nodeDisconnectActions.remove(nodeDisconnectAction);
+               mainWindow.setStatusBarText(I18n.get("mainWindow.statusBar.disconnectedFromNode", node.getName(), node.getHostname(), node.getPort()));
                mainWindow.refreshNodeMenuItems();
        }
 
index 9b4ac17..f8df8e0 100644 (file)
@@ -49,6 +49,8 @@ mainWindow.statusBar.projectSavingDone: Projects saved.
 mainWindow.statusBar.loadingNodesDone: Nodes loaded.
 mainWindow.statusBar.savingNodesDone: Nodes saved.
 mainWindow.statusBar.connectingToNode: Connecting to \u201c{0}\u201d (at {1}:{2})\u2026
+mainWindow.statusBar.connectedToNode: Connected to \u201c{0}\u201d (at {1}:{2}).
+mainWindow.statusBar.disconnectedFromNode: Connected to \u201c{0}\u201d (at {1}:{2}).
 
 # main menus
 mainWindow.menu.jSite.name: jSite
index d6d3e9e..1b0cdf0 100644 (file)
@@ -49,6 +49,8 @@ mainWindow.statusBar.projectSavingDone: Projekte gespeichert.
 mainWindow.statusBar.loadingNodesDone: Nodes geladen.
 mainWindow.statusBar.savingNodesDone: Nodes gespeichert.
 mainWindow.statusBar.connectingToNode: Verbindung zum Node \u201e{0}\u201c ({1}:{2}) wird hergestellt\u2026
+mainWindow.statusBar.connectedToNode: Verbindung zum Node \u201e{0}\u201c ({1}:{2}) hergestellt.
+mainWindow.statusBar.disconnectedFromNode: Verbindung von Node \u201e{0}\u201c ({1}:{2}) getrennt.
 
 # main menus
 mainWindow.menu.jSite.name: jSite