@Override
protected EditPolicy createChildEditPolicy(EditPart child) {
IFigure figure = ((GraphicalEditPart) child).getFigure();
if (figure instanceof NodeFigure && !((NodeFigure) figure).isResizeable())
return new NonResizableEditPolicy();
return new ResizableEditPolicy();
}