String newPath = droppedInElement.getPath();
// trying to move a resource
if (dmtUserObject instanceof ResourceElement) {
ResourceElement dmtResource = (ResourceElement) dmtUserObject;
// check that we aren't trying to move a resource to
// an another resource type directory
if (!newPath.startsWith(dmtResource.type.getDirName())) {
return false;