Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 330354

Summary: Tree-based rule editor: Unable to create Nodes in TransformationSystem subgraph without getting error messages
Product: [Modeling] EMFT.Henshin Reporter: Felix Rieger <riegerf>
Component: UIAssignee: Stefan Jurack <henshin.stj>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Felix Rieger CLA 2010-11-16 09:24:12 EST
Creating graphs as direct children of TransformationSystem and adding Nodes to them will result in an error:

org.eclipse.emf.henshin.model.impl.TransformationSystemImpl cannot be cast to org.eclpse.emf.henshin.model.NestedCondition



Stack trace follows:

Error
Tue Nov 16 15:16:38 CET 2010
Problems occurred when invoking code from plug-in: "org.eclipse.jface".

java.lang.ClassCastException: org.eclipse.emf.henshin.model.impl.TransformationSystemImpl cannot be cast to org.eclipse.emf.henshin.model.NestedCondition
at org.eclipse.emf.henshin.editor.menuContributors.RemoveMappedNodesMenuContributor.buildRemoveMappingImages(RemoveMappedNodesMenuContributor.java:78)
at org.eclipse.emf.henshin.editor.menuContributors.RemoveMappedNodesMenuContributor.contributeActions(RemoveMappedNodesMenuContributor.java:51)
at org.eclipse.emf.henshin.editor.commands.MenuContributor.buildContributions(MenuContributor.java:68)
at org.eclipse.emf.henshin.presentation.CustomizedHenshinActionBarContributor.buildContributions(CustomizedHenshinActionBarContributor.java:134)
at org.eclipse.emf.henshin.presentation.CustomizedHenshinActionBarContributor.refreshMenuManagers(CustomizedHenshinActionBarContributor.java:97)
at org.eclipse.emf.henshin.presentation.CustomizedHenshinActionBarContributor.selectionChanged(CustomizedHenshinActionBarContributor.java:85)
at org.eclipse.emf.henshin.presentation.HenshinEditor.setSelection(HenshinEditor.java:1640)
at org.eclipse.emf.henshin.presentation.HenshinEditor$6.selectionChanged(HenshinEditor.java:831)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2162)
at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1699)
at org.eclipse.jface.viewers.TreeViewer.setSelection(TreeViewer.java:1139)
at org.eclipse.emf.henshin.presentation.HenshinEditor$5.run(HenshinEditor.java:714)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
Comment 1 Stefan Jurack CLA 2010-12-14 07:47:56 EST
Fixed by Felix Rieger