package org.argeo.security.ui.admin.editors;
import org.argeo.ArgeoException;
+import org.argeo.security.ui.admin.SecurityAdminImages;
import org.argeo.security.ui.admin.SecurityAdminPlugin;
import org.argeo.security.ui.admin.internal.UserAdminConstants;
import org.eclipse.core.runtime.IProgressMonitor;
// firePartPropertyChanged("icon", "icons/user.gif", "icons/users.gif");
// }
setPartName(commonName != null ? commonName : "username");
+ setTitleImage(user.getType() == Role.GROUP ? SecurityAdminImages.ICON_GROUP
+ : SecurityAdminImages.ICON_USER);
}
/** Exposes the user (or group) that is displayed by the current editor */
return user;
}
+ void updateEditorTitle(String title) {
+ setPartName(title);
+ }
+
protected void addPages() {
try {
if (user.getType() == Role.GROUP)
addPage(new GroupMainPage(this, userAdmin));
else
- addPage(new UserMainPage(this));
+ addPage(new UserMainPage(this, userAdmin));
} catch (Exception e) {
throw new ArgeoException("Cannot add pages", e);