From 9eec7156e8223a363d6f30392f66dbc8a4aa41cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 13 May 2008 12:07:24 +0000 Subject: [PATCH] add status bar texts when connecting and disconnecting git-svn-id: http://trooper/svn/projects/jSite/trunk@859 c3eda9e8-030b-0410-8277-bc7414b0a119 --- src/net/pterodactylus/jsite/gui/SwingInterface.java | 2 ++ src/net/pterodactylus/jsite/i18n/jSite.properties | 2 ++ src/net/pterodactylus/jsite/i18n/jSite_de.properties | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/net/pterodactylus/jsite/gui/SwingInterface.java b/src/net/pterodactylus/jsite/gui/SwingInterface.java index f634fa5..65e1edd 100644 --- a/src/net/pterodactylus/jsite/gui/SwingInterface.java +++ b/src/net/pterodactylus/jsite/gui/SwingInterface.java @@ -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(); } diff --git a/src/net/pterodactylus/jsite/i18n/jSite.properties b/src/net/pterodactylus/jsite/i18n/jSite.properties index 9b4ac17..f8df8e0 100644 --- a/src/net/pterodactylus/jsite/i18n/jSite.properties +++ b/src/net/pterodactylus/jsite/i18n/jSite.properties @@ -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 diff --git a/src/net/pterodactylus/jsite/i18n/jSite_de.properties b/src/net/pterodactylus/jsite/i18n/jSite_de.properties index d6d3e9e..1b0cdf0 100644 --- a/src/net/pterodactylus/jsite/i18n/jSite_de.properties +++ b/src/net/pterodactylus/jsite/i18n/jSite_de.properties @@ -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 -- 2.7.4