enhancement
major
minor
major
minor
defect
Deleting the selected element in the Model Editor's detail view may delete the "wrong" element in the diagram. The delete action performs the following two functions:
- Deleting the persistent model element
- Deleting the client-side diagram element and updating the set of selected diagram elements
Removing the persistent model element updates the “Domain Object Types” tree. Specifically, the tree’s selection is adjusted. If the deleted domain object type has a supertype, that supertype is selected; otherwise, the enclosing module is selected. Next, the set of selected diagram elements in the graph component is updated. The detail view receives a new model. As a result, the second function subsequently operates on “incorrect” objects and thus does not remove the element containing the deleted object from the diagram, but rather the newly selected one.
Test
- Create a new module M.
- In M, create type `A` with 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 should be updated to `A`.