]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.cms/src/org/argeo/cms/users/UserViewer.java
Fix a few glitches in the various maintenance pages.
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / users / UserViewer.java
index a520da1bd791ba0e718a4ad23818c3481ed7646d..17cffe8f80a53db4836c07cb4193188d4838a6aa 100644 (file)
@@ -4,8 +4,7 @@ import javax.jcr.Node;
 import javax.jcr.RepositoryException;
 
 import org.argeo.cms.CmsEditable;
-import org.argeo.cms.CmsException;
-import org.argeo.cms.CmsUtils;
+import org.argeo.cms.util.CmsUtils;
 import org.argeo.cms.viewers.AbstractPageViewer;
 import org.argeo.cms.viewers.EditablePart;
 import org.eclipse.swt.SWT;
@@ -86,16 +85,6 @@ public class UserViewer extends AbstractPageViewer {
        }
 
 
-       private EditablePart findDataParent(Control parent) {
-               if (parent instanceof EditablePart) {
-                       return (EditablePart) parent;
-               }
-               if (parent.getParent() != null)
-                       return findDataParent(parent.getParent());
-               else
-                       throw new CmsException("No data parent found");
-       }
-
        protected void refresh(Control control) throws RepositoryException {
                if (control instanceof UserPart)
                        ((UserPart) control).refresh();