public static void openFavoriteDialog ( CmsFileExplorer explorer ) { try { CmsExplorerFavoriteContext context = new CmsExplorerFavoriteContext ( A_CmsUI . getCmsObject ( ) , explorer ) ; CmsFavoriteDialog dialog = new CmsFavoriteDialog ( context , new CmsFavoriteDAO ( A_CmsUI . getCmsObject ( ) ) ) ; Window window = CmsBasicDialog . prepareWindow ( DialogWidth . max ) ; window . setContent ( dialog ) ; window . setCaption ( CmsVaadinUtils . getMessageText ( org . opencms . ui . Messages . GUI_FAVORITES_DIALOG_TITLE_0 ) ) ; A_CmsUI . get ( ) . addWindow ( window ) ; window . center ( ) ; } catch ( CmsException e ) { CmsErrorDialog . showErrorDialog ( e ) ; } }
Opens the favorite dialog .