private Component createConvertToPropertyBundleButton ( ) { Button addDescriptorButton = CmsToolBar . createButton ( FontOpenCms . SETTINGS , m_messages . key ( Messages . GUI_CONVERT_TO_PROPERTY_BUNDLE_0 ) ) ; addDescriptorButton . setDisableOnClick ( true ) ; addDescriptorButton . addClickListener ( new ClickListener ( ) { private static final long serialVersionUID = 1L ; public void buttonClick ( ClickEvent event ) { try { m_model . saveAsPropertyBundle ( ) ; Notification . show ( "Conversion successful." ) ; } catch ( CmsException | IOException e ) { CmsVaadinUtils . showAlert ( "Conversion failed" , e . getLocalizedMessage ( ) , null ) ; } } } ) ; addDescriptorButton . setDisableOnClick ( true ) ; return addDescriptorButton ; }
Creates the button for converting an XML bundle in a property bundle .