Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTO] modeltype with platform URI doesn't work, but with namespace URI does
[QVTO] modeltype with platform URI doesn't work, but with namespace URI does [message #528115] Mon, 19 April 2010 12:17 Go to next message
Eclipse UserFriend
Originally posted by: dhendriksREMOVE.THIS.REMOVE...THIStueDOTnlREMOVE..THIS

Hello all,

the following QVTo transformation:

<code>
//modeltype cif uses "platform:/resource/cif2.1.1/model/cif.ecore";
modeltype cif uses "http://cif.tue.nl/cif-2.1.1";

transformation modeltype_test(in in_model : cif, out out_model : cif);

main() {
var x : Set(Element) := in_model.rootObjects();
var y : Set(Element) := x[Specification];

log('x', x);
log('y', y);

// What I'm trying to do...
in_model.rootObjects()[Specification]->xmap transSpecification();
}

mapping Specification::transSpecification() : Specification {
// Something should go here...
}
</code>

works. It gives me this output on the console:

x, data: [cif.impl.SpecificationImpl@1beafe8]
y, data: [cif.impl.SpecificationImpl@1beafe8]


However, If I change the modeltype line (uncomment the one and use the
comment the other, thus using the platform resource URI instead of the
namespace URI), I get this output on the console:

x, data: [cif.impl.SpecificationImpl@13be6c8]
y, data: []


The 'cif.ecore' file exists in my workspace, in the 'cif2.1.1' EMF
project, in the 'model' directory. I created the model, edit, and editor
code for it. I exported all those projects etc.

For some reason, using platform URI, the filtering to the
'Specification' class doesn't match my input, while using namespace URI
it does.

I use eclipse-modeling-galileo-SR2-incubation-linux-gtk-20100301.

Is this a bug, or am I doing something wrong?


Thanks in advance,
Dennis
Re: [QVTO] modeltype with platform URI doesn't work, but with namespace URI does [message #528199 is a reply to message #528115] Mon, 19 April 2010 16:46 Go to previous messageGo to next message
PBarendrecht is currently offline PBarendrechtFriend
Messages: 36
Registered: November 2009
Location: Eindhoven, Netherlands
Member
Hi Dennis,

The platform URI isn't supported anymore, more info is available at https://bugs.eclipse.org/bugs/show_bug.cgi?id=291591
Re: [QVTO] modeltype with platform URI doesn't work, but with namespace URI does [message #528310 is a reply to message #528199] Tue, 20 April 2010 06:37 Go to previous message
Eclipse UserFriend
Originally posted by: dhendriks.tue.nl

Thanks for the answer.

Dennis


PBarendrecht wrote:
> Hi Dennis,
>
> The platform URI isn't supported anymore, more info is available at
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=291591
Previous Topic:[ATL] Launch Error
Next Topic:[QVTO] Extending a transformation does not work together with disjuncts (bug?)
Goto Forum:
  


Current Time: Thu Oct 24 05:42:20 GMT 2019

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

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

Back to the top