Community
Participate
Working Groups
Steps to reproduce in class diagram : - Create a class trough the palette. - Save the diagram. - Delete the class trough the model explorer - Make undo on the root element of the model explorer The class is recreated in the model explorer, but the figure is not restored. Moreover, the diagram is no longer dirty, since the command has been undone, yet it has been modified (figure has disappeared) The problem comes from the fact that the org.eclipse.papyrus.diagram.common.editpolicies.OrphanViewPolicy executes the command in a post-commit context (notification from the modified EObject). Hence, its modifications are not recorded in the transaction and can not be undone.
Should be fixed by using delete command provided by the Element Edit Service (bug324966).
Works in the current version, I close this task.