// edit part?
IGraphicalEditPart contained = elementContainedWithin(selected, diagramEditPart);
if (contained != null) {
// it is: delete the node from the current display
DeleteCommand command2 = new DeleteCommand(editingDomain, contained.getPrimaryView());
command2.execute(monitor, info);
}
}
}
/**