X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.eclipse.ui%2Fsrc%2Forg%2Fargeo%2Feclipse%2Fui%2Fjcr%2FNodeElementComparer.java;h=2f3d64d6bb377754dc856b212da8725394d6fde2;hb=a1e5c8447beec2b896b0a03e38a4c17608a4b85d;hp=f284b9c1385b25762aa6f52120635d24a98a21ad;hpb=e61dd9dda88354091625cca85aa7c96d196688b3;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/jcr/NodeElementComparer.java b/org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/jcr/NodeElementComparer.java index f284b9c13..2f3d64d6b 100644 --- a/org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/jcr/NodeElementComparer.java +++ b/org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/jcr/NodeElementComparer.java @@ -1,24 +1,9 @@ -/* - * Copyright (C) 2007-2012 Argeo GmbH - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.argeo.eclipse.ui.jcr; import javax.jcr.Node; import javax.jcr.RepositoryException; -import org.argeo.ArgeoException; +import org.argeo.eclipse.ui.EclipseUiException; import org.eclipse.jface.viewers.IElementComparer; /** Element comparer for JCR node, to be used in JFace viewers. */ @@ -34,7 +19,7 @@ public class NodeElementComparer implements IElementComparer { return a.equals(b); } } catch (RepositoryException e) { - throw new ArgeoException("Cannot compare nodes", e); + throw new EclipseUiException("Cannot compare nodes", e); } } @@ -44,7 +29,7 @@ public class NodeElementComparer implements IElementComparer { return ((Node) element).getIdentifier().hashCode(); return element.hashCode(); } catch (RepositoryException e) { - throw new ArgeoException("Cannot get hash code", e); + throw new EclipseUiException("Cannot get hash code", e); } }