Closed GoogleCodeExporter closed 8 years ago
Here is the entire stack trace:
java.lang.ClassCastException:
org.modelexecution.xmof.Syntax.Activities.IntermediateActivities.impl.InitialNod
eImpl cannot be cast to org.eclipse.emf.ecore.EDataType
at org.eclipse.emf.ecore.util.BasicExtendedMetaData.createEClassifierExtendedMetaData(BasicExtendedMetaData.java:2810)
at org.eclipse.emf.ecore.util.BasicExtendedMetaData.getExtendedMetaData(BasicExtendedMetaData.java:2796)
at org.eclipse.emf.ecore.util.BasicExtendedMetaData.getName(BasicExtendedMetaData.java:279)
at org.eclipse.emf.edit.provider.ReflectiveItemProvider.gatherMetaData(ReflectiveItemProvider.java:171)
at org.eclipse.emf.edit.provider.ReflectiveItemProvider.gatherAllMetaData(ReflectiveItemProvider.java:126)
at org.eclipse.emf.edit.provider.ReflectiveItemProvider.collectNewChildDescriptors(ReflectiveItemProvider.java:568)
at org.eclipse.emf.edit.provider.ItemProviderAdapter.getNewChildDescriptors(ItemProviderAdapter.java:785)
at org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain.getNewChildDescriptors(AdapterFactoryEditingDomain.java:743)
at org.eclipse.emf.ecore.presentation.EcoreActionBarContributor.selectionChangedGen(EcoreActionBarContributor.java:670)
at org.eclipse.emf.ecore.presentation.EcoreActionBarContributor.selectionChanged(EcoreActionBarContributor.java:694)
at org.eclipse.emf.ecore.presentation.EcoreEditor.setSelection(EcoreEditor.java:1763)
at org.eclipse.emf.ecore.presentation.EcoreEditor$7.selectionChanged(EcoreEditor.java:1008)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:164)
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:162)
at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2188)
at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1211)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1241)
at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:239)
at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:233)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:403)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1276)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3554)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3179)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
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:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Original comment by p.langer
on 15 Feb 2013 at 2:49
The EMF framework (correctly? ;)) assumes that an EClassifier is either an
EClass or an EDataType in
org.eclipse.emf.ecore.util.BasicExtendedMetaData.createEClassifierExtendedMetaDa
ta(EClassifier)
I'll fix that by changing the super type of ActivityNode and ActivityEdge to
ENamedElement (instead of EClassifier).
Original comment by p.langer
on 15 Feb 2013 at 3:39
This issue was closed by revision 118e4c7c28e4.
Original comment by p.langer
on 15 Feb 2013 at 3:40
Original issue reported on code.google.com by
p.langer
on 15 Feb 2013 at 2:47