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