Author: batosai
Date: 2008-10-01 17:28:47 +0000 (Wed, 01 Oct 2008)
New Revision: 22904
Modified:
trunk/plugins/WoT/ui/web/WebPageImpl.java
Log:
Fixed navigation menus displaying many times.
This is ugly as it forces me to keep a part of the view in the controler (WoT).
Modified: trunk/plugins/WoT/ui/web/WebPageImpl.java
===================================================================
--- trunk/plugins/WoT/ui/web/WebPageImpl.java 2008-10-01 17:23:02 UTC (rev
22903)
+++ trunk/plugins/WoT/ui/web/WebPageImpl.java 2008-10-01 17:28:47 UTC (rev
22904)
@@ -44,8 +44,6 @@
this.errorBox = null;
this.contentBoxes = new ArrayList<HTMLNode>();
-
- makeMenu();
}
/**
@@ -96,19 +94,4 @@
box.addChild(content);
contentBoxes.add(box);
}
-
- /**
- * Creates the menu of the WebPage
- */
- private void makeMenu() {
-
- // FIXME It seems that the PluginRespirator gives the same
PageMaker at each request.
- // That means we keep adding links each time a page is
generated :(
- pm.addNavigationLink(SELF_URI, "Home", "Home page", false,
null);
- pm.addNavigationLink(SELF_URI + "?ownidentities", "Own
Identities", "Manage your own identities", false, null);
- pm.addNavigationLink(SELF_URI + "?knownidentities", "Known
Identities", "Manage others identities", false, null);
- pm.addNavigationLink(SELF_URI + "?configuration",
"Configuration", "Configure the WoT plugin", false, null);
- pm.addNavigationLink("/plugins/", "Plugins page", "Back to
Plugins page", false, null);
- }
-
}