GWTJahiaNode singleSelection = lh.getSingleSelection();
setEnabled(singleSelection!=null
&& singleSelection.isLockable()
&& !lh.isLocked()
&& PermissionsUtils.isPermitted("jcr:lockManagement", lh.getSelectionPermissions())
&& singleSelection.canLock() && !lh.isSecondarySelection());
}
}