]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/model/ParentNodeFolder.java
+ Fix some bugs on ResultTree Observer
[gpl/argeo-slc.git] / plugins / org.argeo.slc.client.ui / src / main / java / org / argeo / slc / client / ui / model / ParentNodeFolder.java
index 85da2632ec2c49364d9719756e12e2444f3eb631..a58068fa5f7c70d86fa08d0241d92ec0dfb748a8 100644 (file)
@@ -21,12 +21,12 @@ import javax.jcr.RepositoryException;
 import javax.jcr.nodetype.NodeType;
 
 import org.argeo.slc.SlcException;
-import org.argeo.slc.jcr.SlcJcrResultUtils;
 import org.argeo.slc.jcr.SlcNames;
 import org.argeo.slc.jcr.SlcTypes;
 
 /**
- * UI Tree component that wrap a node of type NT_UNSTRUCTURED.
+ * UI Tree component that wrap a node of type NT_UNSTRUCTURED or base node for
+ * UI specific, user defined tree structure of type SLC_MY_RESULTS_ROOT_FOLDER.
  * 
  * It is used for
  * <ul>
@@ -104,8 +104,7 @@ public class ParentNodeFolder extends ResultParent {
        public synchronized Object[] getChildren() {
                Object[] children = super.getChildren();
                try {
-                       if (node.getPath().equals(
-                                       SlcJcrResultUtils.getMyResultsBasePath(node.getSession())))
+                       if (node.isNodeType(SlcTypes.SLC_MY_RESULT_ROOT_FOLDER))
                                return ResultParentUtils.orderChildren(children);
                        else
                                return children;