package org.apache.karaf.webconsole.core;

import java.util.Collections;
import java.util.List;

import org.apache.karaf.webconsole.core.internal.SidebarPanel;
import org.apache.wicket.Page;
import org.apache.wicket.model.util.ListModel;

public class SidebarPage extends BasePage {

    public SidebarPage() {
        ListModel<Class<? extends Page>> listModel = new ListModel<Class<? extends Page>>(getSubPages());

        add(new SidebarPanel("sidebar", getClass(), listModel));
    }

    protected List<Class<? extends Page>> getSubPages() {
        return Collections.emptyList();
    }

}

@@ -184,16 +184,66 @@
 t.Page;%0A
+import org.apache.wicket.markup.html.panel.Panel;%0A
 import o
@@ -281,16 +281,16 @@
 tModel;%0A
-
 %0Apublic 
@@ -327,16 +327,44 @@
 Page %7B%0A%0A
+    private Panel sidebar;%0A%0A
     publ
@@ -501,12 +501,18 @@
     
-add(
+sidebar = 
 new 
@@ -557,17 +557,101 @@
 stModel)
-)
+;%0A        add(sidebar);%0A    %7D%0A%0A    public Panel getSidebar() %7B%0A        return sidebar
 ;%0A    %7D%0A

Make sidebar accessible for extensions