Refactor monitor and exceptions
[lgpl/argeo-commons.git] / org.argeo.eclipse.ui.workbench / src / org / argeo / eclipse / ui / workbench / CommandUtils.java
index 3670efbe586a277bf7cbbdf5b6ae28bf190843b4..36f12936dd6651f580874d8fe396299868c0665e 100644 (file)
@@ -19,7 +19,7 @@ import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.Map;
 
-import org.argeo.ArgeoException;
+import org.argeo.eclipse.ui.EclipseUiException;
 import org.eclipse.core.commands.Command;
 import org.eclipse.core.commands.Parameterization;
 import org.eclipse.core.commands.ParameterizedCommand;
@@ -173,7 +173,7 @@ public class CommandUtils {
                        // execute the command
                        handlerService.executeCommand(pc, null);
                } catch (Exception e) {
-                       throw new ArgeoException("Unexpected error while"
+                       throw new EclipseUiException("Unexpected error while"
                                        + " calling the command " + commandID, e);
                }
        }