code: protected void installToolbar() {
  
          ClickHandler clickHandler = new ClickHandler() {
  
              /**
               * @see com.google.gwt.event.dom.client.ClickHandler#onClick(com.google.gwt.event.dom.client.ClickEvent)
               */
              public void onClick(ClickEvent event) {
  
                  I_CmsToolbarButton source = (I_CmsToolbarButton)event.getSource();
                  source.onToolbarClick();
                  if (source instanceof CmsPushButton) {
                      ((CmsPushButton)source).clearHoverState();
                  }
              }
          };
          m_toolbar = new CmsToolbar();
          RootPanel root = RootPanel.get();
          m_toolbarVisibility = new CmsStyleVariable(m_toolbar);
          root.add(m_toolbar);
          boolean initiallyVisible = CmsCoreProvider.get().isToolbarVisible();
          if (initiallyVisible) {
              m_toolbarVisibility.setValue(I_CmsLayoutBundle.INSTANCE.toolbarCss().simpleToolbarShow());
          } else {
              m_toolbarVisibility.setValue(I_CmsLayoutBundle.INSTANCE.toolbarCss().toolbarHide());
          }
  
          CmsDirectEditToolbarHandler handler = new CmsDirectEditToolbarHandler(this);
  
          CmsToolbarPublishButton publish = new CmsToolbarPublishButton(handler);
          publish.addClickHandler(clickHandler);
          m_toolbar.addLeft(publish);
  
          CmsToolbarSelectionButton selection = new CmsToolbarSelectionButton(handler);
          selection.setActive(initiallyVisible);
          selection.addClickHandler(clickHandler);
          m_toolbar.addLeft(selection);
          CmsToolbarContextButton contextMenuButton = new CmsToolbarContextButton(handler);
          contextMenuButton.setMenuContext(AdeContext.editprovider);
          contextMenuButton.addClickHandler(clickHandler);
          m_toolbar.addRight(contextMenuButton);
          handler.setContextMenuButton(contextMenuButton);
  
      }
docs: Adds the toolbar to the browser window.<p>