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