Project: Eclipse_Platform_UI
Bug 303841 Model ids should not be used as resource ids
Reported: 2010-02-24 19:22:41 | Status: resolved fixed

Merging can go wrong here because model ids are only unique within a given scope. java.lang.ClassCastException: org.eclipse.e4.ui.model.application.impl.CommandImpl cannot be cast to org.eclipse.e4.ui.model.application.MPerspective at org.eclipse.e4.ui.model.application.impl.PerspectiveStackImpl.eSet(PerspectiveStackImpl.java:201) at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjectImpl.java:1081) at org.eclipse.e4.workbench.ui.internal.EMFModelDeltaSet.apply(EMFModelDeltaSet.java:31) at org.eclipse.e4.workbench.ui.internal.EMFModelDeltaDelayedSet.apply(EMFModelDeltaDelayedSet.java:44) at org.eclipse.e4.workbench.ui.internal.ModelReconcilingService.applyDeltas(ModelReconcilingService.java:53) at org.eclipse.e4.workbench.ui.internal.ModelReconcilingService.applyDeltas(ModelReconcilingService.java:35) at org.eclipse.e4.workbench.ui.internal.ResourceHandler.loadMostRecentModel(ResourceHandler.java:172)

Files changed in fix:
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/workbench/ui/internal/E4XMIResource.java tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/reconciler/E4XMIResourceFactoryTest.java