X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.eclipse.ui%2Fsrc%2Forg%2Fargeo%2Feclipse%2Fui%2Fjcr%2FAbstractNodeContentProvider.java;h=8d80660a4e8aec293b03fec8de848f912fcd43a1;hb=5ec9d72c96b13bf18d702bf01dc2c03b0aee43a4;hp=ef2b8a84503dfeac72a5d07eb3fb27c3d2c64930;hpb=e61dd9dda88354091625cca85aa7c96d196688b3;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/jcr/AbstractNodeContentProvider.java b/org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/jcr/AbstractNodeContentProvider.java index ef2b8a845..8d80660a4 100644 --- a/org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/jcr/AbstractNodeContentProvider.java +++ b/org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/jcr/AbstractNodeContentProvider.java @@ -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