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
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
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
if (overwriteBtn.getSelection())
doFinish = MessageDialog.openConfirm(Display.getDefault()
.getActiveShell(), "CAUTION", "All data contained in ["
- + (parentRelPath !=null?parentRelPath:"")
- + sourceNodeName
+ + (parentRelPath != null ? parentRelPath : "")
+ + "/"+ sourceNodeName
+ "] are about to be definitively destroyed. \n "
+ "Are you sure you want to proceed ?");
else
if (relPath.startsWith(basePath))
relPath = relPath.substring(basePath.length());
// FIXME currently add the default base label
- parentRelPath = SlcUiConstants.DEFAULT_MY_RESULTS_FOLDER_LABEL + "/"
+ parentRelPath = SlcUiConstants.DEFAULT_MY_RESULTS_FOLDER_LABEL
+ relPath;
} catch (RepositoryException e) {
throw new SlcException("Unexpected error while defining "
}
}
}
-}
+}
\ No newline at end of file