import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Table;
import org.eclipse.ui.part.ViewPart;
-import org.springframework.security.core.Authentication;
/** Information about the currently logged in user */
public class UserProfile extends ViewPart {
public void createPartControl(Composite parent) {
parent.setLayout(new GridLayout(2, false));
- Authentication authentication = CurrentUser.getAuthentication();
- EclipseUiUtils.createGridLL(parent, "Name", authentication
- .getPrincipal().toString());
+// Authentication authentication = CurrentUser.getAuthentication();
+// EclipseUiUtils.createGridLL(parent, "Name", authentication
+// .getPrincipal().toString());
EclipseUiUtils.createGridLL(parent, "User ID",
CurrentUser.getUsername());
}
private class RolesContentProvider implements IStructuredContentProvider {
+ private static final long serialVersionUID = -4576917440167866233L;
+
public Object[] getElements(Object inputElement) {
return new TreeSet<String>(CurrentUser.roles()).toArray();
}