}
@Override
protected void showLayoutTargetFeedback(Request request) {
// prepare header
RowHeaderEditPart headerEditPart;
{
ChangeBoundsRequest changeBoundsRequest = (ChangeBoundsRequest) request;
headerEditPart = (RowHeaderEditPart) changeBoundsRequest.getEditParts().get(0);
}
// prepare location
Point location;
{
IDropRequest dropRequest = (IDropRequest) request;
location = dropRequest.getLocation().getCopy();
}
// prepare target header
RowHeaderEditPart target = null;
{
for (EditPart editPart : getHost().getChildren()) {
RowHeaderEditPart rowEditPart = (RowHeaderEditPart) editPart;
Rectangle bounds = rowEditPart.getFigure().getBounds();
if (location.y < bounds.getCenter().y) {
target = rowEditPart;
break;
}
}