dependency.setDependencyType(type);
dependency.setDirty(true);
UndoableEditSupport undoableEditSupport=getUndoableEditSupport(dependency);
if (undoableEditSupport!=null&&!(eventSource instanceof UndoableEdit)){
undoableEditSupport.postEdit(new DependencySetFieldsEdit(dependency,oldLag,oldType,eventSource));
}
}