addNavigationBar(sym);
if (sym.isRoot()) addNavigationBar(ROOT_NAV_CONTEXT); else addNavigationBar(CONTAINER_NAV_CONTEXT);
    protected void createPages(Tree tree) {        Symbol sym = tree.symbol();        createPrinters(sym, null);	String title = Location.getName(sym);        page.printHeader(ATTRS_META, getGenerator());        String windowTitle = title + " (" + doctitle.replaceAll("<.*>", " ") + ")";        page.printOpenBody(new XMLAttribute[]{            new XMLAttribute("onload", "setWindowTitle('" + windowTitle + "');")        });        addNavigationBar(sym);        page.printlnHLine();        addTitle(sym);        addDocumentationComment(sym);        page.printlnHLine();        String[] titles = new String[]{ "Field", "Method", "Object",            "Trait", "Class", "Package" }; // "Constructor"        String[] inherited = new String[]{ "Fields", "Methods", "Objects",            "Traits", "Classes", "Packages" };        Tree[][] members = members(tree);        for (int i = 0; i < titles.length; i++) {            addMemberSummary(members[i], titles[i] + " Summary");            if (i == 1) addInheritedMembers(sym, inherited[i]);        }        for (int i = 0; i < titles.length; i++)            addMemberDetail(members[i], titles[i] + " Detail");        page.printlnHLine();        addNavigationBar(sym);        if (validate)            addValidationBar();        page.printFootpage();        closePrinters();    }