Community
Participate
Working Groups
Commit 2a2a7ee1921adeed877a1a8b877212e745878ce6, which was supposed to be a simple cleanup, actually introduced a regression which causes a ClassCastException when the user selects a tool defined inside a DiagramExtension. Steps to reproduce: 1. Import the attached project. 2. Open fixture.odesign. Make sure the "Properties" view is open. 3. Select the "Node Creation" tool => java.lang.ClassCastException: org.eclipse.sirius.diagram.description.impl.DiagramExtensionDescriptionImpl cannot be cast to org.eclipse.sirius.viewpoint.description.RepresentationDescription at org.eclipse.sirius.ui.business.internal.dialect.DialectUIManagerImpl.completeToolTipText(DialectUIManagerImpl.java:375) at org.eclipse.sirius.editor.properties.sections.tool.abstracttooldescription.AbstractToolDescriptionPreconditionPropertySection.getToolTipText(AbstractToolDescriptionPreconditionPropertySection.java:174) at org.eclipse.sirius.editor.properties.sections.tool.abstracttooldescription.AbstractToolDescriptionPreconditionPropertySection.createControls(AbstractToolDescriptionPreconditionPropertySection.java:117) at org.eclipse.ui.views.properties.tabbed.TabContents$1.run(TabContents.java:112) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45) at org.eclipse.ui.internal.JFaceUtil.lambda$0(JFaceUtil.java:47) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:176) at org.eclipse.ui.views.properties.tabbed.TabContents.createControls(TabContents.java:115) at org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage$SelectionChangedListener.selectionChanged(TabbedPropertySheetPage.java:215) The commit that caused the regression is actually bogus, so the fix is simply to revert it.
Created attachment 279534 [details] Example project to reproduce the issue
New Gerrit change created: https://git.eclipse.org/r/147355
Gerrit change https://git.eclipse.org/r/147355 was merged to [v6.2.x]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=1c2bfeac632d3aae28155cad0a988fe74772ad99