Author: saces
Date: 2008-08-31 08:42:16 +0000 (Sun, 31 Aug 2008)
New Revision: 22269
Modified:
trunk/freenet/src/freenet/clients/http/PageMaker.java
Log:
log only if FredPluginL10n is not implemented
Modified: trunk/freenet/src/freenet/clients/http/PageMaker.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/PageMaker.java 2008-08-31
08:27:31 UTC (rev 22268)
+++ trunk/freenet/src/freenet/clients/http/PageMaker.java 2008-08-31
08:42:16 UTC (rev 22269)
@@ -104,7 +104,11 @@
}
public void addNavigationLink(String path, String name, String title,
boolean fullOnly, LinkEnabledCallback cb) {
- if (pluginMode && (plugin == null)) throw new
IllegalStateException("You need to implement FredPluginL10n to do so.");
+ if (pluginMode && (plugin == null)) {
+ // FIXME invent a check on compile time
+ // log only
+ Logger.error(this, "Deprecated way to use Pagemaker
from plugin, your plugin need to implement FredPluginL10n to do so", new
Error("FIXME"));
+ }
navigationLinkTexts.add(name);
if(!fullOnly)
navigationLinkTextsNonFull.add(name);