private static final class DiagramConnectionLayoutEditPolicy extends LayoutEditPolicy {
@Override
protected EditPolicy createChildEditPolicy(EditPart child) {
if (child instanceof DiagramConnectionLabelEditPart) {
return new DiagramConnectionLabelEditPolicy();
}
return new NonResizableEditPolicy();
}