public void executeAction(I_CmsDialogContext context) {

        CmsObject cms = A_CmsUI.getCmsObject();
        List<CmsUUID> changedIds = Lists.newArrayList();

        for (CmsResource res : context.getResources()) {
            try {
                cms.changeLock(res);
                changedIds.add(res.getStructureId());
            } catch (CmsException e) {
                LOG.warn(e.getLocalizedMessage(), e);
            }
        }
        context.finish(changedIds);
    }
public void executeAction ( I_CmsDialogContext context ) { CmsObject cms = A_CmsUI . getCmsObject ( ) ; List < CmsUUID > changedIds = Lists . newArrayList ( ) ; for ( CmsResource res : context . getResources ( ) ) { try { cms . changeLock ( res ) ; changedIds . add ( res . getStructureId ( ) ) ; } catch ( CmsException e ) { LOG . warn ( e . getLocalizedMessage ( ) , e ) ; } } context . finish ( changedIds ) ; }
@see org.opencms.ui.actions.I_CmsWorkplaceAction#executeAction(org.opencms.ui.I_CmsDialogContext)