Enhancement
Major
Detail
Major
Detail
Bugfix
Deleting the selected element in the Model Editor detail view can delete the "wrong" element in the diagram. The delete action performs the following two functions:
- Deletion of the persistent model element
- Deletion of the client-side diagram element and updating the set of selected diagram elements.
Removing the persistent model element updates the "subject object types" tree. In particular, the selection of the tree is adjusted. If the deleted subject object type has a super type, it is selected, otherwise the enclosing module is selected. Then the set of selected diagram elements of the graph component is updated. The detail view receives a new model. This leads to the fact that afterwards the second function works with "wrong" objects and thus does not remove the element with the deleted object from the diagram, but that newly selected.
Test
- Create new module M.
- In M` create the type `A with the subtype B.
- Then delete B via the detail view or in the diagram itself.
- In both cases the element for B` should be removed from the diagram and the selection adjusted to `A.