code: public String generateNavBar(String toolPath, CmsWorkplace wp) {
  
          if (toolPath.equals(getBaseToolPath(wp))) {
              return "<div class='pathbar'>&nbsp;</div>\n";
          }
          CmsTool adminTool = resolveAdminTool(getCurrentRoot(wp).getKey(), toolPath);
          String html = A_CmsHtmlIconButton.defaultButtonHtml(
              CmsHtmlIconButtonStyleEnum.SMALL_ICON_TEXT,
              "nav" + adminTool.getId(),
              adminTool.getHandler().getName(),
              null,
              false,
              null,
              null,
              null);
          String parent = toolPath;
          while (!parent.equals(getBaseToolPath(wp))) {
              parent = getParent(wp, parent);
              adminTool = resolveAdminTool(getCurrentRoot(wp).getKey(), parent);
              if (adminTool == null) {
                  break;
              }
              String id = "nav" + adminTool.getId();
              String link = linkForToolPath(wp.getJsp(), parent, adminTool.getHandler().getParameters(wp));
              String onClic = "openPage('" + link + "');";
              String buttonHtml = A_CmsHtmlIconButton.defaultButtonHtml(
                  CmsHtmlIconButtonStyleEnum.SMALL_ICON_TEXT,
                  id,
                  adminTool.getHandler().getName(),
                  adminTool.getHandler().getHelpText(),
                  true,
                  null,
                  null,
                  onClic);
              html = "<span>" + buttonHtml + NAVBAR_SEPARATOR + "</span>" + html;
          }
          html = CmsToolMacroResolver.resolveMacros(html, wp);
          html = CmsEncoder.decode(html);
          html = CmsToolMacroResolver.resolveMacros(html, wp);
          html = "<div class='pathbar'>\n" + html + "</div>\n";
          return html;
      }
docs: Returns the navigation bar html code for the given tool path.<p>
  
  @param toolPath the path
  @param wp the jsp page
  
  @return the html code