* Opens the UserPermissionDialog and adds the composed
* user permission to the list.
*/
private void addUserPermission()
{
UserPermissionDialog dialog = new UserPermissionDialog( getShell(), null, context );
if ( dialog.open() == UserPermissionDialog.OK && dialog.getUserPermission() != null )
{
UserPermissionWrapper userPermissionWrapper = new UserPermissionWrapper( dialog.getUserPermission() );
userPermissionWrappers.add( userPermissionWrapper );
tableViewer.refresh();
}
}