Community
Participate
Working Groups
with the bug 319238, we can see inherited contents in Classifiers. If the Generalization is destroyed, we need to destroy the views corresponding to these inherited contents in the subclasses. Currently, I have created an Helper in the common which provides the command to destroy these Views. Currently, the Class Diagram uses this helper to destroy views. A such action should be generalized in all diagrams. Maybe it could be interesting to insert this code in the templates in order to avoid add this action in the custom source.
Created attachment 176675 [details] mylyn/context/zip impacted classes
In the generalizationhelper the code classifierEP.add(DiagramEditPartsUtil.getEditPartFromView((View)currentView, diagramEP)); can return null. So it is important to test it in order to avoid NPE. I have added test in the GeneralizationHelper
This bug can be marked as closed fixed.