ts.addTab(widget.getWidgetPropertiesPanel(), messages.getMessage("form.properties"));
}
if (widget.hasPermissions()) {
PermissionEditor permissionEditor = new PermissionEditor();
permissionEditor.setMargin(true);
permissionEditor.setProvider(new PermissionProvider() {
@Override
public Collection<Permission> getPermissions() {
return new LinkedHashSet<Permission>(widget.getPermissions());
}