]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/views/JcrResultTreeView.java
+
[gpl/argeo-slc.git] / plugins / org.argeo.slc.client.ui / src / main / java / org / argeo / slc / client / ui / views / JcrResultTreeView.java
index a830c9b96e4e2e6c97e24bf98ce4dc584582e949..152e15c6e89bdf4f40cc44a1664d4a701b2ae0f2 100644 (file)
@@ -32,8 +32,6 @@ import javax.jcr.observation.Event;
 import javax.jcr.observation.EventListener;\r
 import javax.jcr.observation.ObservationManager;\r
 \r
-import org.apache.commons.logging.Log;\r
-import org.apache.commons.logging.LogFactory;\r
 import org.argeo.ArgeoException;\r
 import org.argeo.eclipse.ui.jcr.AsyncUiEventListener;\r
 import org.argeo.eclipse.ui.utils.CommandUtils;\r
@@ -103,7 +101,8 @@ import org.eclipse.ui.part.ViewPart;
 public class JcrResultTreeView extends ViewPart {\r
        public final static String ID = ClientUiPlugin.ID + ".jcrResultTreeView";\r
 \r
-       private final static Log log = LogFactory.getLog(JcrResultTreeView.class);\r
+       // private final static Log log =\r
+       // LogFactory.getLog(JcrResultTreeView.class);\r
 \r
        /* DEPENDENCY INJECTION */\r
        private Session session;\r
@@ -619,7 +618,9 @@ public class JcrResultTreeView extends ViewPart {
                                        if (isResultFolder) {\r
                                                source = ((ParentNodeFolder) lastSelectedSourceElement)\r
                                                                .getNode();\r
-                                               if (tpNode.getPath().startsWith(source.getPath()))\r
+                                               if (tpNode.getPath().startsWith(source.getPath())\r
+                                                               || source.getParent().getPath()\r
+                                                                               .equals(tpNode.getPath()))\r
                                                        doit = false;\r
                                        } else if (lastSelectedSourceElement instanceof SingleResultNode) {\r
                                                source = ((SingleResultNode) lastSelectedSourceElement)\r