]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.eclipse.ui.workbench/src/org/argeo/eclipse/ui/workbench/commands/OpenEditor.java
Improve workbench layer
[lgpl/argeo-commons.git] / org.argeo.eclipse.ui.workbench / src / org / argeo / eclipse / ui / workbench / commands / OpenEditor.java
index fe31bc4ef1470fec145acd76afc6c53a7e78332b..57ae9f28d6ecd38cf2c72c197bbb5ca6c580b609 100644 (file)
@@ -17,12 +17,12 @@ 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;
 import org.argeo.eclipse.ui.workbench.jcr.DefaultNodeEditor;
 import org.argeo.eclipse.ui.workbench.jcr.GenericJcrQueryEditor;
-import org.argeo.eclipse.ui.workbench.jcr.internal.parts.JcrQueryEditorInput;
-import org.argeo.eclipse.ui.workbench.jcr.internal.parts.NodeEditorInput;
 import org.eclipse.core.commands.AbstractHandler;
 import org.eclipse.core.commands.ExecutionEvent;
 import org.eclipse.core.commands.ExecutionException;
@@ -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;
        }