]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/jcr/AbstractNodeContentProvider.java
Improve JCR utilities.
[lgpl/argeo-commons.git] / org.argeo.eclipse.ui / src / org / argeo / eclipse / ui / jcr / AbstractNodeContentProvider.java
index ef2b8a84503dfeac72a5d07eb3fb27c3d2c64930..8d80660a4e8aec293b03fec8de848f912fcd43a1 100644 (file)
@@ -25,12 +25,14 @@ import javax.jcr.Session;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.argeo.ArgeoException;
 import org.argeo.eclipse.ui.AbstractTreeContentProvider;
+import org.argeo.eclipse.ui.EclipseUiException;
 
-/** Canonic implementation of tree content provider manipulating JCR nodes. */
+/** Canonical implementation of tree content provider manipulating JCR nodes. */
 public abstract class AbstractNodeContentProvider extends
                AbstractTreeContentProvider {
+       private static final long serialVersionUID = -4905836490027272569L;
+
        private final static Log log = LogFactory
                        .getLog(AbstractNodeContentProvider.class);
 
@@ -57,14 +59,14 @@ public abstract class AbstractNodeContentProvider extends
                                Node node = (Node) element;
                                children = getChildren(node);
                        } catch (RepositoryException e) {
-                               throw new ArgeoException("Cannot get children of " + element, e);
+                               throw new EclipseUiException("Cannot get children of " + element, e);
                        }
                } else if (element instanceof WrappedNode) {
                        WrappedNode wrappedNode = (WrappedNode) element;
                        try {
                                children = getChildren(wrappedNode.getNode());
                        } catch (RepositoryException e) {
-                               throw new ArgeoException("Cannot get children of "
+                               throw new EclipseUiException("Cannot get children of "
                                                + wrappedNode, e);
                        }
                } else if (element instanceof NodesWrapper) {
@@ -140,7 +142,7 @@ public abstract class AbstractNodeContentProvider extends
                        }
 
                } catch (RepositoryException e) {
-                       throw new ArgeoException("Cannot check whether " + element
+                       throw new EclipseUiException("Cannot check whether " + element
                                        + " has children", e);
                }
                return super.hasChildren(element);
@@ -149,4 +151,4 @@ public abstract class AbstractNodeContentProvider extends
        public Session getSession() {
                return session;
        }
-}
+}
\ No newline at end of file