public void execute() {

        CmsSitemapController controller = getHoverbar().getController();
        CmsClientSitemapEntry entry = getHoverbar().getEntry();

        CmsGalleryConfiguration configuration = new CmsGalleryConfiguration();
        List<String> typeNames = controller.getGalleryType(
            new Integer(entry.getResourceTypeId())).getContentTypeNames();
        configuration.setSearchTypes(typeNames);
        configuration.setResourceTypes(typeNames);
        configuration.setGalleryMode(GalleryMode.adeView);
        configuration.setGalleryStoragePrefix("" + GalleryMode.adeView);
        configuration.setTabConfiguration(CmsGalleryTabConfiguration.resolve("selectDoc"));
        configuration.setReferencePath(entry.getSitePath());
        configuration.setGalleryPath(entry.getSitePath());
        CmsGalleryPopup dialog = new CmsGalleryPopup(null, configuration);
        dialog.center();
    }
public void execute ( ) { CmsSitemapController controller = getHoverbar ( ) . getController ( ) ; CmsClientSitemapEntry entry = getHoverbar ( ) . getEntry ( ) ; CmsGalleryConfiguration configuration = new CmsGalleryConfiguration ( ) ; List < String > typeNames = controller . getGalleryType ( new Integer ( entry . getResourceTypeId ( ) ) ) . getContentTypeNames ( ) ; configuration . setSearchTypes ( typeNames ) ; configuration . setResourceTypes ( typeNames ) ; configuration . setGalleryMode ( GalleryMode . adeView ) ; configuration . setGalleryStoragePrefix ( "" + GalleryMode . adeView ) ; configuration . setTabConfiguration ( CmsGalleryTabConfiguration . resolve ( "selectDoc" ) ) ; configuration . setReferencePath ( entry . getSitePath ( ) ) ; configuration . setGalleryPath ( entry . getSitePath ( ) ) ; CmsGalleryPopup dialog = new CmsGalleryPopup ( null , configuration ) ; dialog . center ( ) ; }
@see org.opencms.gwt.client.ui.contextmenu.I_CmsContextMenuEntry#execute()