X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FWebInterface.java;h=42c234e3694dae626a633c60baf8db52c14a6404;hb=f64bdc298e7db6fa63e4141e0f1ef921f8de7971;hp=774fe7ac5d88944a775963b1acc30c71631f78be;hpb=93ea75542313445d34da309e81384a123c361fab;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/web/WebInterface.java b/src/main/java/net/pterodactylus/sone/web/WebInterface.java index 774fe7a..42c234e 100644 --- a/src/main/java/net/pterodactylus/sone/web/WebInterface.java +++ b/src/main/java/net/pterodactylus/sone/web/WebInterface.java @@ -28,6 +28,7 @@ import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; +import net.pterodactylus.sone.core.Core; import net.pterodactylus.sone.main.SonePlugin; import net.pterodactylus.sone.web.page.CSSPage; import net.pterodactylus.sone.web.page.PageToadlet; @@ -66,6 +67,7 @@ public class WebInterface extends AbstractService { * The Sone plugin */ public WebInterface(SonePlugin sonePlugin) { + super("Sone Web Interface"); this.sonePlugin = sonePlugin; } @@ -74,6 +76,15 @@ public class WebInterface extends AbstractService { // /** + * Returns the Sone core used by the Sone plugin. + * + * @return The Sone core + */ + public Core core() { + return sonePlugin.core(); + } + + /** * Returns the l10n helper of the node. * * @return The node’s l10n helper @@ -134,7 +145,7 @@ public class WebInterface extends AbstractService { pageToadlets.add(pageToadletFactory.createPageToadlet(new CSSPage("css/", "/static/css/"))); ToadletContainer toadletContainer = sonePlugin.pluginRespirator().getToadletContainer(); - toadletContainer.getPageMaker().addNavigationCategory("/Sone/", "Navigation.Menu.Name", "Navigation.Menu.Tooltip", sonePlugin); + toadletContainer.getPageMaker().addNavigationCategory("/Sone/index.html", "Navigation.Menu.Name", "Navigation.Menu.Tooltip", sonePlugin); for (PageToadlet toadlet : pageToadlets) { String menuName = toadlet.getMenuName(); if (menuName != null) {