use of org.eclipse.wst.xsd.ui.internal.design.editparts.ConnectableEditPart in project webtools.sourceediting by eclipse.
the class BaseDragAndDropCommand method handleOtherTargets.
protected void handleOtherTargets(int index) {
int in = 0;
ConnectableEditPart previousModelEditPart = null;
for (Iterator i = targetSpacesList.iterator(); i.hasNext(); ) {
Object o = i.next();
previousModelEditPart = parentEditPart;
TargetConnectionSpacingFigureEditPart sp = (TargetConnectionSpacingFigureEditPart) o;
if (sp.getParent() instanceof ConnectableEditPart)
parentEditPart = (ConnectableEditPart) sp.getParent();
else
parentEditPart = null;
in++;
if (in > index) {
if (closerSibling == ABOVE_IS_CLOSER) {
parentEditPart = previousModelEditPart;
}
break;
}
}
}
Aggregations