}
}
} else if (relationName.equals(Interaction.Interaction)) {//����ģ���ڹ�ϵ�ı䴦��
if (!oldSFID.equals(newSFID) || !oldEFID.equals(newEFID)) {
Interaction interaction = interactionModel.getInteraction(id);
String type = interaction.getType();
String name = interaction.getName();
interactionModelEditor.removeInteraction(id);
//����id��figure��ӳ���
if (idToFigureMap != null) {
idToFigureMap.remove(interaction.getID(), focusConnection);
}
if (!interactionModel.containsInteraction(type, name, newSFID, newEFID)) {
Interaction newInteraction = interactionModelEditor.addInteraction(id, type, name, newSFID, newEFID);
//����id��figure��ӳ���
if (idToFigureMap != null) {
idToFigureMap.add(newInteraction.getID(), focusConnection);
}
} else {
drawingView.removeFromSelection(focusConnection);
drawingView.remove(focusConnection);
}