X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=plugins%2Forg.argeo.slc.client.ui%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fclient%2Fui%2Fviews%2FJcrResultTreeView.java;h=152e15c6e89bdf4f40cc44a1664d4a701b2ae0f2;hb=fa3ef281f77b9006aec8825e4a56840d78cff64f;hp=a830c9b96e4e2e6c97e24bf98ce4dc584582e949;hpb=637d6d896df3bcb4272ebb6431cf54870bd69977;p=gpl%2Fargeo-slc.git diff --git a/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/views/JcrResultTreeView.java b/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/views/JcrResultTreeView.java index a830c9b96..152e15c6e 100644 --- a/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/views/JcrResultTreeView.java +++ b/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/views/JcrResultTreeView.java @@ -32,8 +32,6 @@ import javax.jcr.observation.Event; import javax.jcr.observation.EventListener; import javax.jcr.observation.ObservationManager; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; import org.argeo.ArgeoException; import org.argeo.eclipse.ui.jcr.AsyncUiEventListener; import org.argeo.eclipse.ui.utils.CommandUtils; @@ -103,7 +101,8 @@ import org.eclipse.ui.part.ViewPart; public class JcrResultTreeView extends ViewPart { public final static String ID = ClientUiPlugin.ID + ".jcrResultTreeView"; - private final static Log log = LogFactory.getLog(JcrResultTreeView.class); + // private final static Log log = + // LogFactory.getLog(JcrResultTreeView.class); /* DEPENDENCY INJECTION */ private Session session; @@ -619,7 +618,9 @@ public class JcrResultTreeView extends ViewPart { if (isResultFolder) { source = ((ParentNodeFolder) lastSelectedSourceElement) .getNode(); - if (tpNode.getPath().startsWith(source.getPath())) + if (tpNode.getPath().startsWith(source.getPath()) + || source.getParent().getPath() + .equals(tpNode.getPath())) doit = false; } else if (lastSelectedSourceElement instanceof SingleResultNode) { source = ((SingleResultNode) lastSelectedSourceElement)