Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTO] (3.4M6) modeltype fails to resolve file protocol
[QVTO] (3.4M6) modeltype fails to resolve file protocol [message #78450] Mon, 07 April 2008 19:44 Go to next message
Eclipse UserFriend
Originally posted by: yann.davin.gmail.com

Hi all,

I've switch to the last version of QVTO (3.4M6) in order to try the nice removeElement function :),
but the upgrade has brocken my modeltype statement when I use the file protocol.

example : modeltype ADL uses adl('file:///home/blablabla/model.ecore'); --fails !

Of course I've checked ten times that the file is ok, and it is. I would like to know if it's a known bug,
if there is a new syntax to resolve metamodel with the file protocol, or if my eclipse is crazy.

Regards,

Yann
Re: [QVTO] (3.4M6) modeltype fails to resolve file protocol [message #78467 is a reply to message #78450] Tue, 08 April 2008 08:09 Go to previous message
Sergey Boyko is currently offline Sergey BoykoFriend
Messages: 171
Registered: July 2009
Senior Member
Hi Yann,

That's because in M6 we constrained uri resolving to platfrom only uris.
When uri can't be resolved using EPackage.Registry it delegates to
standard ResourceSet loader but only for platform (URI.isPlatform()) uris.
The reason is that in case of, say, incomplete uri starts from
'http://my.site.org/bla-bla..' standard loader tries to resolve it using
internet connection. This is not suitable for code completion (that is
also presented in M6).

In order to use free form uri you should use Metamodel Mappings. They
are specified in plugin properties/QVT Settings/Metamodel Mappings page.
Just provide name for Source uri and set target to your model. Then
Source uri name can be used in qvto script.

Regards,
Sergey


yann davin wrote:
> Hi all,
>
> I've switch to the last version of QVTO (3.4M6) in order to try the nice
> removeElement function :),
> but the upgrade has brocken my modeltype statement when I use the file
> protocol.
>
> example : modeltype ADL uses adl('file:///home/blablabla/model.ecore');
> --fails !
>
> Of course I've checked ten times that the file is ok, and it is. I would
> like to know if it's a known bug,
> if there is a new syntax to resolve metamodel with the file protocol, or
> if my eclipse is crazy.
>
> Regards,
>
> Yann
Previous Topic:[QVTO] Invoking transformations programatically from another plugin
Next Topic:[ATL] Generic language2language transformation
Goto Forum:
  


Current Time: Thu Apr 25 14:45:45 GMT 2024

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

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

Back to the top