@Override
    public void onToolbarClick() {

        CmsEmbeddedDialogHandler handler = new CmsEmbeddedDialogHandler();
        Map<String, String> params = new HashMap<>();
        CmsCntPageData pageData = CmsContainerpageController.get().getData();
        CmsCoreData coreData = CmsCoreProvider.get();
        CmsUUID projectId = coreData.getProjectId();
        CmsUUID pageId = coreData.getStructureId();
        CmsUUID detailId = pageData.getDetailId();
        String siteRoot = coreData.getSiteRoot();
        params.put(CmsGwtConstants.Favorites.PARAM_DETAIL, "" + detailId);
        params.put(CmsGwtConstants.Favorites.PARAM_PAGE, "" + pageId);
        params.put(CmsGwtConstants.Favorites.PARAM_SITE, siteRoot);
        params.put(CmsGwtConstants.Favorites.PARAM_PROJECT, "" + projectId);
        handler.openDialog("org.opencms.ui.actions.CmsFavoriteDialogAction", null, new ArrayList<CmsUUID>(), params);
    }
@ Override public void onToolbarClick ( ) { CmsEmbeddedDialogHandler handler = new CmsEmbeddedDialogHandler ( ) ; Map < String , String > params = new HashMap < > ( ) ; CmsCntPageData pageData = CmsContainerpageController . get ( ) . getData ( ) ; CmsCoreData coreData = CmsCoreProvider . get ( ) ; CmsUUID projectId = coreData . getProjectId ( ) ; CmsUUID pageId = coreData . getStructureId ( ) ; CmsUUID detailId = pageData . getDetailId ( ) ; String siteRoot = coreData . getSiteRoot ( ) ; params . put ( CmsGwtConstants . Favorites . PARAM_DETAIL , "" + detailId ) ; params . put ( CmsGwtConstants . Favorites . PARAM_PAGE , "" + pageId ) ; params . put ( CmsGwtConstants . Favorites . PARAM_SITE , siteRoot ) ; params . put ( CmsGwtConstants . Favorites . PARAM_PROJECT , "" + projectId ) ; handler . openDialog ( "org.opencms.ui.actions.CmsFavoriteDialogAction" , null , new ArrayList < CmsUUID > ( ) , params ) ; }
@see org.opencms.gwt.client.ui.A_CmsToolbarButton#onToolbarClick()