Community
Participate
Working Groups
Quite easy to reproduce : 1. Create a new diagram with two EClasses 2. Try to "Delete From Model" one of the two EClasses The EClass is removed from the model, but the graphical occurrence is still present in the diagram : the problem is probably due to a bad layout of remaining graphical elements : "Argument 'nodes' contains objects which have a different parent containment" However when saving and reopening the model, elements are refreshed correctly without corrupting the domain and diagram files : this is the good news !
It only happens when trying to delete an element at the top level of the diagram : the problem may be due to a bad use of the CanonicalEditPolicy that was adapted for our needs.
There are two solutions to fix this bug : - fix the GMF bug in the ContainerEditPolicy (line 316) : bug 226150 that check whether the EditPart is active or not. - remove the workaround done in the EcoreDiagramEditor (line 344) to fix the bug 203520 Many thanks to David for the bug resolution !
Remove the workaround done in the EcoreDiagramEditor class to fix the bug 203520. Bug 226235 is then introduced but with a lower severity.
Close fixed bugs