Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317297 - getting the selected model when loading a model from EMF Registry
Summary: getting the selected model when loading a model from EMF Registry
Status: CLOSED WONTFIX
Alias: None
Product: MoDisco
Classification: Modeling
Component: Infrastructure (show other bugs)
Version: 0.8.0   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Fabien Giquel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-18 09:46 EDT by Missing name CLA
Modified: 2011-01-11 04:48 EST (History)
4 users (show)

See Also:


Attachments

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