package org.argeo.security.ui.admin.internal.providers;
-import org.argeo.ArgeoException;
+import org.argeo.cms.CmsException;
import org.argeo.eclipse.ui.workbench.WorkbenchUiPlugin;
import org.argeo.security.ui.admin.internal.parts.UserEditor;
import org.argeo.security.ui.admin.internal.parts.UserEditorInput;
Object obj = ((IStructuredSelection) evt.getSelection())
.getFirstElement();
User user = (User) obj;
- // IWorkbench iw =
IWorkbenchWindow iww = WorkbenchUiPlugin.getDefault().getWorkbench()
.getActiveWorkbenchWindow();
IWorkbenchPage iwp = iww.getActivePage();
UserEditorInput uei = new UserEditorInput(user.getName());
try {
- // Work around the fact that dynamic setting of the editor icon
+ // Works around the fact that dynamic setting of the editor icon
// causes NPE after a login/logout on RAP
if (user instanceof Group)
iwp.openEditor(uei, UserEditor.GROUP_EDITOR_ID);
else
iwp.openEditor(uei, UserEditor.USER_EDITOR_ID);
} catch (PartInitException pie) {
- throw new ArgeoException("Unable to open UserEditor for " + user,
+ throw new CmsException("Unable to open UserEditor for " + user,
pie);
}
}