try
{
Integer precedence = precedenceCheckbox.getSelection() ? precedenceSpinner.getSelection() : null;
Collection<ProtectedItem> protectedItems = protectedItemsComposite.getProtectedItems();
Collection<GrantAndDenial> grantsAndDenials = grantsAndDenialsComposite.getGrantsAndDenials();
returnUserPermission = new UserPermission( precedence, grantsAndDenials, protectedItems );
super.okPressed();
}
catch ( Exception e )
{
MessageDialog.openError( getShell(), Messages