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) {
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