UML Package Registry

org.eclipse.uml2.uml.generated_package

2.1.0

This extension point is used to register the location of a UML package against the namespace URI (Uniform Resource Identifier) of its Ecore representation.

<!ELEMENT extension (profile*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT profile EMPTY>

<!ATTLIST profile

uri      CDATA #REQUIRED

location CDATA #IMPLIED>


Following is an example of how a profile location can be registered:
  

<extension point=

"org.eclipse.uml2.uml.generated_package"

>

<package uri=

"http://www.eclipse.org/uml2/schemas/Ecore/4"

location=

"pathmap://UML_PROFILES/Ecore.profile.uml#_0"

/>

</extension>

A profile location can also be registered from source code with UMLPlugin#getEPackageNsURIToProfileLocationMap() as follows:
  UMLPlugin.getEPackageNsURIToProfileLocationMap().put("http://www.eclipse.org/uml2/schemas/Ecore/4", URI.createURI("pathmap://UML_PROFILES/Ecore.profile.uml#_0")); 

For any UML profile implementation generated by EMF, an extension to this extension point should be included in the manifest file to register the location of the profile.