Set<Permission> newPermissions = new LinkedHashSet<Permission>(widget.getPermissions());
newPermissions.remove(permission);
widget.setPermissions(new ArrayList<Permission>(newPermissions));
}
});
permissionEditor.loadData();
ts.addTab(permissionEditor, messages.getMessage("form.permissions"));
}
layout.addComponent(ts);
}