[QVTO] Use metamodel mappings with nested packages [message #836704] |
Wed, 04 April 2012 20:23  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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!
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02288 seconds