code: private void initToolbarButtons(I_CmsAppUIContext context) {
  
          m_publishButton = context.addPublishButton(new I_CmsUpdateListener<String>() {
  
              public void onUpdate(List<String> updatedItems) {
  
                  updateAll(false);
              }
  
          });
  
          m_newButton = CmsToolBar.createButton(
              FontOpenCms.WAND,
              CmsVaadinUtils.getMessageText(Messages.GUI_NEW_RESOURCE_TITLE_0));
          if (CmsAppWorkplaceUi.isOnlineProject()) {
              m_newButton.setEnabled(false);
              m_newButton.setDescription(CmsVaadinUtils.getMessageText(Messages.GUI_TOOLBAR_NOT_AVAILABLE_ONLINE_0));
          }
          m_newButton.addClickListener(new ClickListener() {
  
              private static final long serialVersionUID = 1L;
  
              public void buttonClick(ClickEvent event) {
  
                  onClickNew();
              }
  
          });
  
          context.addToolbarButton(m_newButton);
  
          m_uploadButton = new CmsUploadButton(FontOpenCms.UPLOAD, "/");
          m_uploadButton.addStyleName(ValoTheme.BUTTON_BORDERLESS);
          m_uploadButton.addStyleName(OpenCmsTheme.TOOLBAR_BUTTON);
          if (CmsAppWorkplaceUi.isOnlineProject()) {
              m_uploadButton.setEnabled(false);
              m_uploadButton.setDescription(CmsVaadinUtils.getMessageText(Messages.GUI_TOOLBAR_NOT_AVAILABLE_ONLINE_0));
          } else {
              m_uploadButton.setDescription(CmsVaadinUtils.getMessageText(Messages.GUI_UPLOAD_BUTTON_TITLE_0));
          }
          m_uploadButton.addUploadListener(new I_UploadListener() {
  
              public void onUploadFinished(List<String> uploadedFiles) {
  
                  updateAll(true);
              }
          });
  
          context.addToolbarButton(m_uploadButton);
      }
docs: Initializes the app specific toolbar buttons.<p>
  
  @param context the UI context