Community
Participate
Working Groups
create two classes C1 and C2 and an association A_C1-C2 between those classes. Delete from diagram the association Then select one of the classes (any) and request "navigate>restore related element". This command is no more available (it was before and there was a NPE on it) and it should be. Workaround : serach for the association in the model explorer and drag and drop it, but we really need to get the "restore related elements" active in this situation. Major as it is a key behavior to ensure "valid" diagrams.
According documentation about this functionality. the code to do this job is not generic and not generated. So we have to code it by implement editpolicy that can manage ShowRelatedElementsRequest. I put it as an enhancement with a high priority.
This problem will be corrected with the following bug: 343641: [General] "Restore related elements" action on Class Diagram, Activity Diagram and Parametric Diagram poluating other GMF editors https://bugs.eclipse.org/bugs/show_bug.cgi?id=343641 *** This bug has been marked as a duplicate of bug 343641 ***