ProjectController mediator = getProjectController();
ObjRelationship[] rels = getProjectController()
.getCurrentObjRelationships();
if (rels != null && rels.length > 0) {
if ((rels.length == 1 && dialog.shouldDelete("ObjRelationship",
rels[0].getName()))
|| (rels.length > 1 && dialog
.shouldDelete("selected ObjRelationships"))) {
ObjEntity entity = mediator.getCurrentObjEntity();
removeObjRelationships(entity, rels);