&& ((PartPane) sourcePart).getStack()!=null
&& ((PartPane) sourcePart).getStack().isStandalone());
// Only allow dropping onto an existing stack from different windows
if (differentWindows && targetPart instanceof EditorStack) {
IDropTarget target = targetPart.getDropTarget(draggedObject, position);
return target;
}
// Reserve the 5 pixels around the edge of the part for the drop-on-edge cursor
if (distance >= 5 && !standalone) {
// Otherwise, ask the part if it has any special meaning for this drop location
IDropTarget target = targetPart.getDropTarget(draggedObject, position);
if (target != null) {
return target;
}
}