Community
Participate
Working Groups
The AbstractViewActionDelegate#selectionChanged method does not test if the selected EObject is an UML Element before cast, which causes errors in some other contexts : java.lang.ClassCastException: org.eclipse.papyrus.properties.contexts.impl.SectionImpl cannot be cast to org.eclipse.uml2.uml.Element at org.eclipse.papyrus.profile.ui.actions.AbstractViewActionDelegate.setSelectedElement(AbstractViewActionDelegate.java:94) at org.eclipse.papyrus.profile.ui.actions.AbstractViewActionDelegate.selectionChanged(AbstractViewActionDelegate.java:76) at org.eclipse.ui.internal.PluginAction.refreshEnablement(PluginAction.java:206) at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:277) at org.eclipse.ui.internal.ObjectActionContributor$1.run(ObjectActionContributor.java:157) [...]
Created attachment 184717 [details] Correction : Test added before cast
Fix in the revision 5145 for the branch a test has been added
Merge has been done for the head revision 5146