Refactor monitor and exceptions
[lgpl/argeo-commons.git] / org.argeo.eclipse.ui.workbench / src / org / argeo / eclipse / ui / workbench / commands / OpenEditor.java
index bf2f824e82988732383b9088c41d3cb2daddba2b..57ae9f28d6ecd38cf2c72c197bbb5ca6c580b609 100644 (file)
@@ -17,7 +17,7 @@ package org.argeo.eclipse.ui.workbench.commands;
 
 import javax.jcr.Node;
 
-import org.argeo.ArgeoException;
+import org.argeo.eclipse.ui.EclipseUiException;
 import org.argeo.eclipse.ui.workbench.WorkbenchUiPlugin;
 import org.argeo.eclipse.ui.workbench.internal.jcr.parts.JcrQueryEditorInput;
 import org.argeo.eclipse.ui.workbench.internal.jcr.parts.NodeEditorInput;
@@ -52,7 +52,7 @@ public class OpenEditor extends AbstractHandler {
                                activePage.openEditor(editorInput, editorId);
                        }
                } catch (PartInitException e) {
-                       throw new ArgeoException("Cannot open editor of ID " + editorId, e);
+                       throw new EclipseUiException("Cannot open editor of ID " + editorId, e);
                }
                return null;
        }