|Re: Registering Ecore.profile.uml [message #868240 is a reply to message #868072]
||Tue, 01 May 2012 18:09
|| Christian W. Damus
Registered: July 2009
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:
On 2012-05-01 16:26:43 +0000, Tex Iano said:
> 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:
> 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?
Powered by FUDForum
. Page generated in 0.01794 seconds