Bug 146049

Summary: ElementTypeRegistry assumes nsURI are the same inside one's type hierarchy
Product: [Modeling] GMF-Runtime Reporter: Loic JULIEN <lj>
Component: GeneralAssignee: Linda Damus <ldamus>
Status: RESOLVED FIXED QA Contact:
Severity: blocker    
Priority: P1 Keywords: contributed
Version: 1.0   
Target Milestone: 1.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
org.eclipse.gmf.runtime.emf.type.core none

Description Loic JULIEN CLA 2006-06-08 13:00:58 EDT
When working with the "org.eclipse.gmf.runtime.emf.type.core.elementTypes" extension point, you will define your nsURI and the name of your EObject type.

The code looks for the nsURI of the provided element, and tries to find the right metamodel type. When traversing the supertypes, it is assumed that the nsURI is always the same. This is a wrong asumption.

The context could have associated an nsURI that is different than the one of the element itself.

I will attach a patch. I have tested the patch with our code.
Comment 1 Loic JULIEN CLA 2006-06-08 13:01:25 EDT
Created attachment 43882 [details]
org.eclipse.gmf.runtime.emf.type.core
Comment 2 Linda Damus CLA 2006-06-08 17:11:33 EDT
Reviewed and committed the patch.  Thanks Loic!
Comment 3 Richard Gronback CLA 2008-08-13 13:05:51 EDT
[target cleanup] 1.0 RC5 was the original target milestone for this bug
Comment 4 Eclipse Webmaster CLA 2010-07-19 12:24:44 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime EMF was the original product and component for this bug