updateEntityCell(e.getEntity());
// maybe super entity was changed
ObjEntity entity = (ObjEntity) e.getEntity();
DefaultEdge inheritanceEdge = inheritanceEdges.get(entity);
if (inheritanceEdge != null) {
if (entity.getSuperEntity() == null) {
graph.getGraphLayoutCache().remove(new Object[] {
inheritanceEdge
});
inheritanceEdges.remove(entity);
}
else {
inheritanceEdge.setTarget(entityCells.get(
entity.getSuperEntity().getName()).getChildAt(0));
Map nested = new HashMap();
nested.put(inheritanceEdge, inheritanceEdge.getAttributes());
graph.getGraphLayoutCache().edit(nested);
}
}
else {
if (entity.getSuperEntity() != null) {
DefaultEdge edge = createInheritanceEdge(entity);
graph.getGraphLayoutCache().insert(edge);
}
}
}