X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.cms.ui.workbench%2Fsrc%2Forg%2Fargeo%2Fcms%2Fui%2Fworkbench%2Finternal%2Fjcr%2Fmodel%2FSingleJcrNodeElem.java;h=f323c1bd75d80480449427d243ce22e8a03d43dc;hb=d190f16d959392d923be5c43fd947fb4aa180376;hp=c27a13c2f4cc5f8b5284a200ff9657ba788bd693;hpb=f820435de4afc623ab896ba98767f3502bbc8328;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/model/SingleJcrNodeElem.java b/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/model/SingleJcrNodeElem.java index c27a13c2f..f323c1bd7 100644 --- a/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/model/SingleJcrNodeElem.java +++ b/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/model/SingleJcrNodeElem.java @@ -26,19 +26,14 @@ import org.argeo.eclipse.ui.TreeParent; /** * UI Tree component. Wraps a node of a JCR {@link Workspace}. It also keeps a * reference to its parent node that can either be a {@link WorkspaceElem}, a - * {@link SingleJcrNodeElem} or null if the node is "mounted" as the root of the UI - * tree. + * {@link SingleJcrNodeElem} or null if the node is "mounted" as the root of the + * UI tree. */ - public class SingleJcrNodeElem extends TreeParent { private final Node node; private String alias = null; - // keeps a local reference to the node's name to avoid exception when the - // session is lost - // private final String name; - /** Creates a new UiNode in the UI Tree */ public SingleJcrNodeElem(TreeParent parent, Node node, String name) { super(name); @@ -58,7 +53,7 @@ public class SingleJcrNodeElem extends TreeParent { this.alias = alias; } - /** returns the node wrapped by the current Ui object */ + /** Returns the node wrapped by the current UI object */ public Node getNode() { return node; } @@ -68,7 +63,8 @@ public class SingleJcrNodeElem extends TreeParent { } /** - * Override normal behavior to initialize children only when first requested + * Overrides normal behaviour to initialise children only when first + * requested */ @Override public synchronized Object[] getChildren() { @@ -84,9 +80,7 @@ public class SingleJcrNodeElem extends TreeParent { } return super.getChildren(); } catch (RepositoryException re) { - throw new EclipseUiException( - "Unexcpected error while initializing children SingleJcrNode", - re); + throw new EclipseUiException("Cannot initialize SingleJcrNode children", re); } } } @@ -99,10 +93,7 @@ public class SingleJcrNodeElem extends TreeParent { else return false; } catch (RepositoryException re) { - throw new EclipseUiException( - "Unexpected error while checking children node existence", - re); + throw new EclipseUiException("Cannot check children node existence", re); } } - }