Bug 146049 - ElementTypeRegistry assumes nsURI are the same inside one's type hierarchy
Summary: ElementTypeRegistry assumes nsURI are the same inside one's type hierarchy
Status: RESOLVED FIXED
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows XP
: P1 blocker
Target Milestone: 1.0   Edit
Assignee: Linda Damus CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2006-06-08 13:00 EDT by Loic JULIEN CLA
Modified: 2010-07-19 12:24 EDT (History)
0 users

See Also:


Attachments
org.eclipse.gmf.runtime.emf.type.core (1.18 KB, patch)
2006-06-08 13:01 EDT, Loic JULIEN CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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