X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.eclipse.ui%2Fsrc%2Forg%2Fargeo%2Feclipse%2Fui%2Fjcr%2FJcrUiUtils.java;h=420154b83abf5b2f21d643b5063274252da1c287;hb=a1e5c8447beec2b896b0a03e38a4c17608a4b85d;hp=32ae1a7005ecd0d3e488c568abf6e77eef6c80a7;hpb=9761b519d89f11b793ecd720f5e2a8a8fe61af3b;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/jcr/JcrUiUtils.java b/org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/jcr/JcrUiUtils.java index 32ae1a700..420154b83 100644 --- a/org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/jcr/JcrUiUtils.java +++ b/org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/jcr/JcrUiUtils.java @@ -6,7 +6,7 @@ import javax.jcr.Node; import javax.jcr.PropertyType; import javax.jcr.RepositoryException; -import org.argeo.ArgeoException; +import org.argeo.eclipse.ui.EclipseUiException; import org.argeo.eclipse.ui.jcr.lists.NodeViewerComparator; import org.argeo.eclipse.ui.jcr.lists.RowViewerComparator; import org.eclipse.jface.viewers.TableViewer; @@ -28,7 +28,6 @@ public class JcrUiUtils { public static boolean setJcrProperty(Node node, String propName, int propertyType, Object value) { try { - // int propertyType = getPic().getProperty(propName).getType(); switch (propertyType) { case PropertyType.STRING: if ("".equals((String) value) @@ -83,17 +82,17 @@ public class JcrUiUtils { } default: - throw new ArgeoException("Unimplemented property save"); + throw new EclipseUiException("Unimplemented property save"); } } catch (RepositoryException re) { - throw new ArgeoException("Unexpected error while setting property", + throw new EclipseUiException("Unexpected error while setting property", re); } } /** * Creates a new selection adapter in order to provide sorting abitily on a - * swt table that display a row list + * SWT Table that display a row list **/ public static SelectionAdapter getRowSelectionAdapter(final int index, final int propertyType, final String selectorName,