if (eventSource != null)
dependency.fireDeleteEvent(eventSource);
UndoableEditSupport undoableEditSupport=getUndoableEditSupport(dependency);
if (undo && undoableEditSupport!=null&&!(eventSource instanceof UndoableEdit)){
undoableEditSupport.postEdit(new DependencyDeletionEdit(dependency,eventSource));
}
}