Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTO] Use metamodel mappings with nested packages
[QVTO] Use metamodel mappings with nested packages [message #836704] Wed, 04 April 2012 20:23 Go to next message
Christopher Gerking is currently offline Christopher GerkingFriend
Messages: 41
Registered: April 2011
Member
My M2M transformation relies on an ecore meta-model with nested packages:

package1 (nsURI: htttp://package1)
-package11 (nsURI: htttp://package1/package11)
--class1
--class2
--class3
-package12 (nsURI: htttp://package1/package12)
--class4
--class5

This meta-model is located within my development workspace.
Since I want to deploy the model transformation also within the development workspace, I set up meta-model mappings for the transformation.

This works if I map the toplevel package URI to the ecore location like this:

htttp://package1 mapped to platform:/resource/<plugin-id>/model/meta.ecore

However, using this mapping, I have to prefix all the classes within the transformation via package1::package11:class1 etc. Hence, I would like to map the nested packages. I tried it using the same approach as for Xtext:

htttp://package1/package11 mapped to platform:/resource/<plugin-id>/model/meta.ecore#//package1

But this mapping does not work. It still refers to the toplevel package.


Thanks for help in advance!

Re: [QVTO] Use metamodel mappings with nested packages [message #836718 is a reply to message #836704] Wed, 04 April 2012 20:41 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 4154
Registered: July 2009
Senior Member
Hi

This looks like a bug. Please raise a Bugzilla.

Regards

Ed Willink


On 04/04/2012 21:23, Missing name Mising name wrote:
> My M2M transformation relies on an ecore meta-model with nested packages:
>
> package1 (nsURI: htttp://package1)
> -package11 (nsURI: htttp://package1/package11)
> --class1
> --class2
> --class3 -package12 (nsURI: htttp://package1/package12)
> --class4
> --class5
>
> This meta-model is located within my development workspace.
> Since I want to deploy the model transformation also within the
> development workspace, I set up meta-model mappings for the
> transformation.
> This works if I map the toplevel package URI to the ecore location
> like this:
>
> htttp://package1 mapped to
> platform:/resource/<plugin-id>/model/meta.ecore
>
> However, using this mapping, I have to prefix all the classes within
> the transformation via package1::package11:class1 etc. Hence, I would
> like to map the nested packages. I tried it using the same approach as
> for Xtext:
> htttp://package1/package11 mapped to
> platform:/resource/<plugin-id>/model/meta.ecore#//package1
>
> But this mapping does not work. It still refers to the toplevel package.
>
>
> Thanks for help in advance!
>
>
Previous Topic:[QVTO] Invoke a transformation using its XMI file
Next Topic:[QVTO] Run transformation via extension point "org.eclipse.m2m.qvt.oml.runtime.qvtTransformatio
Goto Forum:
  


Current Time: Thu Nov 27 02:09:12 GMT 2014

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

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