Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Registering Ecore.profile.uml
Registering Ecore.profile.uml [message #868072] Tue, 01 May 2012 16:26 Go to next message
Tex Iano is currently offline Tex IanoFriend
Messages: 99
Registered: February 2012
Member
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
Re: Registering Ecore.profile.uml [message #868240 is a reply to message #868072] Tue, 01 May 2012 18:09 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

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
Re: Registering Ecore.profile.uml [message #868548 is a reply to message #868240] Wed, 02 May 2012 07:47 Go to previous message
Tex Iano is currently offline Tex IanoFriend
Messages: 99
Registered: February 2012
Member
Ahh ok, thanks Smile Not its working.

Regards,

Tex

[Updated on: Wed, 02 May 2012 07:47]

Report message to a moderator

Previous Topic:EMF wizard, UML2 and package name case
Next Topic:Transform UML2XSD
Goto Forum:
  


Current Time: Fri Mar 29 07:23:16 GMT 2024

Powered by FUDForum. Page generated in 0.07771 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top