@Override
    public void onModuleLoad() {

        super.onModuleLoad();
        int dialogHeight = CmsToolbarPopup.getAvailableHeight();
        int dialogWidth = CmsToolbarPopup.getAvailableWidth();
        CmsPopup popup = new CmsPopup(dialogWidth);
        popup.setGlassEnabled(false);

        popup.removePadding();
        SimplePanel container = new SimplePanel();
        popup.setMainContent(container);
        popup.addDialogClose(new Command() {

            public void execute() {

                closeDialog();
            }
        });
        popup.center();
        popup.catchNotifications();
        CmsGalleryDialog dialog = CmsGalleryFactory.createDialog(popup);
        container.setWidget(dialog);
        dialog.setDialogSize(dialogWidth, dialogHeight);
        popup.center();

    }
@ Override public void onModuleLoad ( ) { super . onModuleLoad ( ) ; int dialogHeight = CmsToolbarPopup . getAvailableHeight ( ) ; int dialogWidth = CmsToolbarPopup . getAvailableWidth ( ) ; CmsPopup popup = new CmsPopup ( dialogWidth ) ; popup . setGlassEnabled ( false ) ; popup . removePadding ( ) ; SimplePanel container = new SimplePanel ( ) ; popup . setMainContent ( container ) ; popup . addDialogClose ( new Command ( ) { public void execute ( ) { closeDialog ( ) ; } } ) ; popup . center ( ) ; popup . catchNotifications ( ) ; CmsGalleryDialog dialog = CmsGalleryFactory . createDialog ( popup ) ; container . setWidget ( dialog ) ; dialog . setDialogSize ( dialogWidth , dialogHeight ) ; popup . center ( ) ; }
@see org.opencms.gwt.client.A_CmsEntryPoint#onModuleLoad()