|
Re: Registering Ecore.profile.uml [message #868240 is a reply to message #868072] |
Tue, 01 May 2012 18:09 |
|
Hi, Tex,
Firstly, you don't need to use the UMLPackageImpl and UMLResourceImpl
classes. The UMLPackage interface defines the eNS_URI constant that
you need for registering the package and the UMLResource interface
defines the ECORE_PROFILE_NS_URI constant. You should never need to
use the Impl classes.
The Ecore Profile is not a generated package. Its Ecore definition is
dynamic, defined within the Ecore.profile.uml resource, itself. So,
you'll need to set up the registration to ape what the
org.eclipse.uml2.uml.resources plug-in's plugin.xml does:
<extension
point="org.eclipse.uml2.uml.dynamic_package">
<profile uri="http://www.eclipse.org/uml2/schemas/Ecore/5"
location="pathmap://UML_PROFILES/Ecore.profile.uml#_0"/>
</extension>
HTH,
Christian
On 2012-05-01 16:26:43 +0000, Tex Iano said:
> Hi,
>
> I want to register the Ecore.profile.uml with the nsURI
> eclipse.org/uml2/schemas/Ecore/5 (not allowed to post links)
>
> For UML I did it this way:
>
> EPackage.Registry.INSTANCE.put(UMLPackageImpl.eINSTANCE.getNsURI(),
> UMLPackageImpl.eINSTANCE);
>
>
> However, I do not find the class representing the Ecore.profile.uml.
> This is what I found out:
>
>
> EPackage.Registry.INSTANCE.put(UMLResourceImpl.ECORE_PROFILE_NS_URI, ???);
>
>
> I can find the NS_URI using the UMLResource. But where is the instance
> that I can link to this URI? Any ideas?
>
> regards,
>
> Tex
|
|
|
|
Powered by
FUDForum. Page generated in 0.07771 seconds