return new ResizableEditPolicy();
}
@Override
protected Command createChangeConstraintCommand(EditPart child, Object constraint) {
NodeChangeConstraintCommand locationCommand = new NodeChangeConstraintCommand();
locationCommand.setNode((Node) child.getModel());
Rectangle newRect = getClosestRectangle((Rectangle) constraint);
locationCommand.setNewConstraint(newRect);
return locationCommand;
}