X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=inline;f=org.argeo.eclipse.ui.workbench%2Fsrc%2Forg%2Fargeo%2Feclipse%2Fui%2Fworkbench%2Fcommands%2FOpenEditor.java;h=57ae9f28d6ecd38cf2c72c197bbb5ca6c580b609;hb=3a0d866fbeea3f78c293212f4b4fbaeba7dfe2bd;hp=123f089b84d70ee8d0eb0e37b43f72c916adc80b;hpb=ebc46b310bf1f44c4acbeae3d2ab8c1aeaef5eb5;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.eclipse.ui.workbench/src/org/argeo/eclipse/ui/workbench/commands/OpenEditor.java b/org.argeo.eclipse.ui.workbench/src/org/argeo/eclipse/ui/workbench/commands/OpenEditor.java index 123f089b8..57ae9f28d 100644 --- a/org.argeo.eclipse.ui.workbench/src/org/argeo/eclipse/ui/workbench/commands/OpenEditor.java +++ b/org.argeo.eclipse.ui.workbench/src/org/argeo/eclipse/ui/workbench/commands/OpenEditor.java @@ -15,12 +15,14 @@ */ package org.argeo.eclipse.ui.workbench.commands; -import org.argeo.ArgeoException; +import javax.jcr.Node; + +import org.argeo.eclipse.ui.EclipseUiException; import org.argeo.eclipse.ui.workbench.WorkbenchUiPlugin; -import org.argeo.eclipse.ui.workbench.jcr.GenericJcrQueryEditor; +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.internal.parts.JcrQueryEditorInput; -import org.argeo.eclipse.ui.workbench.jcr.internal.parts.NodeEditorInput; +import org.argeo.eclipse.ui.workbench.jcr.GenericJcrQueryEditor; import org.eclipse.core.commands.AbstractHandler; import org.eclipse.core.commands.ExecutionEvent; import org.eclipse.core.commands.ExecutionException; @@ -28,7 +30,7 @@ import org.eclipse.ui.IWorkbenchPage; import org.eclipse.ui.PartInitException; import org.eclipse.ui.handlers.HandlerUtil; -/** Opens an editor given its ID. */ +/** Open a {@link Node} editor of a specific type given the node path */ public class OpenEditor extends AbstractHandler { public final static String ID = WorkbenchUiPlugin.ID + ".openEditor"; @@ -50,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; }