Community
Participate
Working Groups
Build Identifier: Papyrus version : 0.8.0 v 201103300538 (on the trunk) The scope of org.eclipse.papyrus.sysml.diagram.parametric.providers.ParametricDiagramContributionItemProvider is not limited to current diagram it implies that the action is available in all diagram. Moreover in all other editor you can get a Null Pointer Exception because the method org.eclipse.papyrus.sysml.diagram.parametric.actions.RestoreRelatedLinksAction.isEnabled() is not safe. This is also in the Class Diagram and in the Activity Diagram. Reproducible: Always Steps to Reproduce: 1. Create a diagram with another GMF editor 2. Right click on a new IGraphicalEditPart 3. Choose Navigate 4. Select "Restore Related Element"
*** Bug 343149 has been marked as a duplicate of this bug. ***
*** Bug 316548 has been marked as a duplicate of this bug. ***
The correction has been committed on the trunk and branch 0.8.X. Note: There is a polluting contribution in the contextual menu by an EcoreTool contribution. Normally the bug has been corrected on the trunk of Ecore Tools. So this problem should resolved by it self. If in the following released the bug is not corrected a class policy has to be added in the plugin org.eclipse.emf.ecoretools.diagram and referenced in the org.eclipse.gmf.runtime.common.ui.services.action.contributionItemProviders extension. This class will have to constrain the contribution to the EcoreTools Editor. This bug has to be monitored and correct if needed.