Community
Participate
Working Groups
Let's say you had the following scenario... On a non-canonical diagram, you have a non-canonical shape that contains canonical border item. There is a non-canonical connection from the border item to another shape. If you delete the connection with the delete key, you would expect it to just be deleted from the diagram, but instead it deletes the relationship from the model. The reason is that ConnectionEditPolicy.shouldDeleteSemantic() returns true if one of the ends is canonical. Actually, it should figure out if the connector itself is canonical.
I already committed a fix that modifies the behavior of the ConnectionEditPolicy and DeleteFromDiagramAction so that the semantic element is deleted only if both source and target's containers are canonical. This is still not the real correct behavior, so I will leave this bugzilla open. We need to figure out a way if the connection will be created canonically to really fix this.
Moving to the next release, GMF 2.1.
[GMF Restructure] Bug 319140 : product GMF and component Runtime was the original product and component for this bug