Author: jflesch
Date: 2007-03-31 15:56:54 +0000 (Sat, 31 Mar 2007)
New Revision: 12473
Modified:
trunk/apps/Thaw/src/thaw/core/Core.java
trunk/apps/Thaw/src/thaw/plugins/QueueWatcher.java
trunk/apps/Thaw/src/thaw/plugins/Restarter.java
Log:
Fix QueueWatcher's toolbar
Modified: trunk/apps/Thaw/src/thaw/core/Core.java
===================================================================
--- trunk/apps/Thaw/src/thaw/core/Core.java 2007-03-31 15:55:47 UTC (rev
12472)
+++ trunk/apps/Thaw/src/thaw/core/Core.java 2007-03-31 15:56:54 UTC (rev
12473)
@@ -31,7 +31,7 @@
private SplashScreen splashScreen = null;
private MainWindow mainWindow = null;
- Config config = null;
+ private Config config = null;
private PluginManager pluginManager = null;
private ConfigWindow configWindow = null;
@@ -47,12 +47,12 @@
public final static int TIME_BETWEEN_EACH_TRY = 5000;
private ReconnectionManager reconnectionManager = null;
-
+
// MDNS stuffs
private final JmDNS jmdns;
// SYNC IT!!!
protected final LinkedList foundNodes;
-
+
private class FCPMDNSListener implements ServiceListener {
public void serviceAdded(ServiceEvent event) {
Logger.notice(this, "Service added : " +
event.getName()+"."+event.getType());
@@ -67,7 +67,7 @@
synchronized (foundNodes) {
foundNodes.remove(service);
synchronized
(configWindow.nodeConfigPanel.mdnsPanel) {
-
configWindow.nodeConfigPanel.mdnsPanel.notifyAll();
+
configWindow.nodeConfigPanel.mdnsPanel.notifyAll();
}
}
}
@@ -92,7 +92,7 @@
Logger.info(this, "Thaw, version "+Main.VERSION, true);
Logger.info(this, "2006(c) Freenet project", true);
Logger.info(this, "Released under GPL license version 2 or
later (see http://www.fsf.org/licensing/licenses/gpl.html)", true);
-
+
this.foundNodes = new LinkedList();
try {
// Spawn the mdns listener
@@ -107,7 +107,7 @@
throw new RuntimeException("Error loading
MDNSDiscoveryPanel : " + e.getMessage());
}
}
-
+
protected boolean isHasTheSameIPAddress(ServiceInfo host) {
try{
return (jmdns.getInterface().equals(host.getAddress())
? true : false);
Modified: trunk/apps/Thaw/src/thaw/plugins/QueueWatcher.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/QueueWatcher.java 2007-03-31 15:55:47 UTC
(rev 12472)
+++ trunk/apps/Thaw/src/thaw/plugins/QueueWatcher.java 2007-03-31 15:56:54 UTC
(rev 12473)
@@ -48,6 +48,11 @@
private JButton removeSelectedButton;
+ public QueueWatcher() {
+
+ }
+
+
public boolean run(final Core core) {
this.core = core;
@@ -169,7 +174,7 @@
}
public String getNameForUser() {
- return I18n.getMessage("thaw.common.status");
+ return I18n.getMessage("thaw.plugin.queueWatcher");
}
@@ -225,7 +230,7 @@
public void stateChanged(final ChangeEvent e) {
int tabId;
- tabId =
core.getMainWindow().getTabbedPane().indexOfTab(I18n.getMessage("thaw.common.status"));
+ tabId =
core.getMainWindow().getTabbedPane().indexOfTab(I18n.getMessage("thaw.plugin.queueWatcher"));
if (tabId < 0) {
Logger.warning(this, "Unable to find the tab !");
Modified: trunk/apps/Thaw/src/thaw/plugins/Restarter.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/Restarter.java 2007-03-31 15:55:47 UTC
(rev 12472)
+++ trunk/apps/Thaw/src/thaw/plugins/Restarter.java 2007-03-31 15:56:54 UTC
(rev 12473)
@@ -105,7 +105,7 @@
// We really really really don't care.
}
- Logger.notice(this, "Restarting [some] failed
downloads");
+ Logger.info(this, "Restarting some failed downloads (if
there are some)");
try {
if(!running)