Refactor monitor and exceptions
[lgpl/argeo-commons.git] / org.argeo.eclipse.ui.workbench / src / org / argeo / eclipse / ui / workbench / commands / AddRemoteRepository.java
index 2ee8f896384cbd0a0fa0a07fa08e395fb5e4ace7..ba86eb71c4f264e9f46ed4098708f6e9b8690152 100644 (file)
@@ -24,7 +24,7 @@ import javax.jcr.RepositoryFactory;
 import javax.jcr.Session;
 import javax.jcr.SimpleCredentials;
 
-import org.argeo.ArgeoException;
+import org.argeo.eclipse.ui.EclipseUiException;
 import org.argeo.eclipse.ui.dialogs.ErrorFeedback;
 import org.argeo.eclipse.ui.workbench.CommandUtils;
 import org.argeo.eclipse.ui.workbench.WorkbenchConstants;
@@ -175,7 +175,7 @@ public class AddRemoteRepository extends AbstractHandler implements
                                Node remote = home.hasNode(ARGEO_REMOTE) ? home
                                                .getNode(ARGEO_REMOTE) : home.addNode(ARGEO_REMOTE);
                                if (remote.hasNode(name.getText()))
-                                       throw new ArgeoException(
+                                       throw new EclipseUiException(
                                                        "There is already a remote repository named "
                                                                        + name.getText());
                                Node remoteRepository = remote.addNode(name.getText(),