NodeModel node = (NodeModel) childEditPart.getModel();
DeleteCommand command = new DeleteCommand();
command.setChild(node);
EditPart parent = childEditPart.getParent();
command.setParent((CompoundModel) parent.getModel());
command.execute();
}
// else if it is an edge, DeleteConnectionCommand is called
else if (childEditPart instanceof ChsEdgeEditPart)
{
{