Refactor monitor and exceptions
[lgpl/argeo-commons.git] / org.argeo.eclipse.ui.workbench / src / org / argeo / eclipse / ui / workbench / commands / AddPrivileges.java
index cc7d94ee602f2d31f5d2aa6eb8d6f8e33b1a5406..8ad021f72c1eb4be1a56bb91d07aec235e9775b0 100644 (file)
@@ -18,7 +18,7 @@ package org.argeo.eclipse.ui.workbench.commands;
 import javax.jcr.Node;
 import javax.jcr.RepositoryException;
 
-import org.argeo.ArgeoException;
+import org.argeo.eclipse.ui.EclipseUiException;
 import org.argeo.eclipse.ui.TreeParent;
 import org.argeo.eclipse.ui.dialogs.ErrorFeedback;
 import org.argeo.eclipse.ui.workbench.WorkbenchUiPlugin;
@@ -69,7 +69,7 @@ public class AddPrivileges extends AbstractHandler {
                                dialog.open();
                                return null;
                        } catch (RepositoryException re) {
-                               throw new ArgeoException("Unable to retrieve "
+                               throw new EclipseUiException("Unable to retrieve "
                                                + "path or JCR session to add privilege on "
                                                + jcrParentNode, re);
                        }