if (child instanceof DiagramNodeEditPart && constraint instanceof Rectangle) {
// Bug 382542 - Diagram: sometimes moving a node does not move context buttons
// Hide the context buttons when moving a node
this.presentation.getConfigurationManager().getDiagramEditor().getContextButtonManager().hideContextButtonsInstantly();
DiagramNodeModel node = ((DiagramNodeEditPart)child).getCastedModel();
return new MoveNodeCommand(node, (Rectangle)constraint);
}
return super.createChangeConstraintCommand(request, child, constraint);
}