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

Bug 317297

Summary: getting the selected model when loading a model from EMF Registry
Product: [Modeling] MoDisco Reporter: Missing name <trostren>
Component: InfrastructureAssignee: Fabien Giquel <fabien.giquel>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P2 CC: fabien.giquel, gdupe, hugo.bruneliere, modisco.web-inbox
Version: 0.8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Missing name CLA 2010-06-18 09:46:28 EDT
i try to load an UML model from the EMF Registy using the load Metamodel resource in a facet set.

i choose the registered package uri "http://www.eclipse.org/uml2/2.1.0/UML" 

and the model loaded has this registered package uri  is http://www.eclipse.org/uml2/3.0.0/UML

i don't understand why.
Comment 1 Fabien Giquel CLA 2010-12-13 08:57:06 EST
Hello Tony,

that is uml2 eclipse components declaration which induces this behavior.

Here is an extract of "org.eclipse.uml2.uml plugin.xml" :

  <extension point="org.eclipse.emf.ecore.generated_package">
    <package 
       uri = "http://www.eclipse.org/uml2/2.0.0/UML" 
       class = "org.eclipse.uml2.uml.UMLPackage" /> 
  </extension>
  <extension point="org.eclipse.emf.ecore.generated_package">
    <package 
       uri = "http://www.eclipse.org/uml2/2.1.0/UML" 
       class = "org.eclipse.uml2.uml.UMLPackage" /> 
  </extension>
   <extension point="org.eclipse.emf.ecore.generated_package">
    <package 
       uri = "http://www.eclipse.org/uml2/3.0.0/UML" 
       class = "org.eclipse.uml2.uml.UMLPackage"
       genModel = "model/UML.genmodel" /> 
  </extension>

The three uris are declared implemented by the same EPackage class (wich has  "http://www.eclipse.org/uml2/3.0.0/UML" uri). The declaration for two old uris respond to compatibility requirements.
Comment 2 Hugo Bruneliere CLA 2011-01-11 04:48:23 EST
Not a MoDisco bug.