X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.app.ui%2Fsrc%2Forg%2Fargeo%2Fapp%2Fui%2Fpeople%2FPersonUiProvider.java;h=c82edbc443b7d133e0d880770124e1bd0582fa9a;hb=73eaca246f43a14a2403426f6344d06843e25fbc;hp=17dc29bd2c5d45b0bd7abc41e19f0cda1dfadb5f;hpb=01513d5ffb8cf1f1a7c230a9983a5943dc7e13f6;p=gpl%2Fargeo-suite.git diff --git a/org.argeo.app.ui/src/org/argeo/app/ui/people/PersonUiProvider.java b/org.argeo.app.ui/src/org/argeo/app/ui/people/PersonUiProvider.java index 17dc29b..c82edbc 100644 --- a/org.argeo.app.ui/src/org/argeo/app/ui/people/PersonUiProvider.java +++ b/org.argeo.app.ui/src/org/argeo/app/ui/people/PersonUiProvider.java @@ -62,6 +62,16 @@ public class PersonUiProvider implements CmsUiProvider { if (roles.contains(role)) radio.setSelection(true); } + +// Composite facetsSection = new Composite(main, SWT.NONE); +// facetsSection.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1)); +// facetsSection.setLayout(new GridLayout()); +// if (context.hasContentClass(LdapObjs.groupOfNames.qName())) { +// String[] members = context.attr(LdapAttrs.member.qName()).split("\n"); +// for (String member : members) { +// new Label(facetsSection, SWT.NONE).setText(member); +// } +// } } // if (user instanceof Group) { @@ -116,7 +126,10 @@ public class PersonUiProvider implements CmsUiProvider { EditableText text = new EditableText(parent, SWT.SINGLE | SWT.FLAT); text.setLayoutData(CmsSwtUtils.fillWidth()); text.setStyle(SuiteStyle.simpleInput); - text.setText(context.attr(attr.qName())); + String txt = context.attr(attr.qName()); + if (txt == null) // FIXME understand why email is not found in IPA + txt = ""; + text.setText(txt); text.setMouseListener(new MouseAdapter() { @Override