public void loadContextMenu(final CmsUUID structureId, final AdeContext context) {

        /** The RPC menu action for the container page dialog. */
        CmsRpcAction<List<CmsContextMenuEntryBean>> menuAction = new CmsRpcAction<List<CmsContextMenuEntryBean>>() {

            /**
            * @see org.opencms.gwt.client.rpc.CmsRpcAction#execute()
            */
            @Override
            public void execute() {

                CmsCoreProvider.getService().getContextMenuEntries(structureId, context, this);
            }

            /**
            * @see org.opencms.gwt.client.rpc.CmsRpcAction#onResponse(java.lang.Object)
            */
            @Override
            public void onResponse(List<CmsContextMenuEntryBean> menuBeans) {

                insertContextMenu(menuBeans, structureId);
            }
        };
        menuAction.execute();

    }
public void loadContextMenu ( final CmsUUID structureId , final AdeContext context ) { CmsRpcAction < List < CmsContextMenuEntryBean > > menuAction = new CmsRpcAction < List < CmsContextMenuEntryBean > > ( ) { @ Override public void execute ( ) { CmsCoreProvider . getService ( ) . getContextMenuEntries ( structureId , context , this ) ; } @ Override public void onResponse ( List < CmsContextMenuEntryBean > menuBeans ) { insertContextMenu ( menuBeans , structureId ) ; } } ; menuAction . execute ( ) ; }
@see org.opencms.gwt.client.ui.I_CmsToolbarHandler#loadContextMenu(org.opencms.util.CmsUUID, org.opencms.gwt.shared.CmsCoreData.AdeContext)