protected Command createChangeConstraintCommand(EditPart child,
Object constraint) {
log.trace("Create Change Constraint Command " + child);
ElementRecordChangeLayoutCommand command = null;
if (child instanceof ElementRecordPart) {
normalizeConstraint((Rectangle) constraint, MIN_WIDTH, MIN_HEIGHT);
command = new ElementRecordChangeLayoutCommand();
command.setConstraint((Rectangle) constraint);
command.setModel(child.getModel());
}
return command;
}