private void addDownloadButton(final CmsLogFileView view) {

        Button button = CmsToolBar.createButton(
            FontOpenCms.DOWNLOAD,
            CmsVaadinUtils.getMessageText(Messages.GUI_LOGFILE_DOWNLOAD_0));
        button.addClickListener(new ClickListener() {

            private static final long serialVersionUID = 1L;

            public void buttonClick(ClickEvent event) {

                Window window = CmsBasicDialog.prepareWindow(CmsBasicDialog.DialogWidth.wide);
                window.setCaption(CmsVaadinUtils.getMessageText(Messages.GUI_LOGFILE_DOWNLOAD_0));
                window.setContent(new CmsLogDownloadDialog(window, view.getCurrentFile()));
                A_CmsUI.get().addWindow(window);
            }
        });
        m_uiContext.addToolbarButton(button);
    }
private void addDownloadButton ( final CmsLogFileView view ) { Button button = CmsToolBar . createButton ( FontOpenCms . DOWNLOAD , CmsVaadinUtils . getMessageText ( Messages . GUI_LOGFILE_DOWNLOAD_0 ) ) ; button . addClickListener ( new ClickListener ( ) { private static final long serialVersionUID = 1L ; public void buttonClick ( ClickEvent event ) { Window window = CmsBasicDialog . prepareWindow ( CmsBasicDialog . DialogWidth . wide ) ; window . setCaption ( CmsVaadinUtils . getMessageText ( Messages . GUI_LOGFILE_DOWNLOAD_0 ) ) ; window . setContent ( new CmsLogDownloadDialog ( window , view . getCurrentFile ( ) ) ) ; A_CmsUI . get ( ) . addWindow ( window ) ; } } ) ; m_uiContext . addToolbarButton ( button ) ; }
Adds the download button.

@param view layout which displays the log file