Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [QVTO] load metamodel programmatically
[QVTO] load metamodel programmatically [message #536693] Sat, 29 May 2010 21:19 Go to next message
Eclipse UserFriend
Originally posted by: vanbeerst.gmail.com

Hi,

I have an ecore metamodel and I am using standalone QVTO.
I add the metamodel to a new registry, with it's NsURI, but my
transformation still complains it can not find the metamodel, which is
defined in the transformation using the same NsURI.
What else do I need to do to load the metamodel in memory?

dear regards,
tony.
Re: [QVTO][SOLVED] load metamodel programmatically [message #536897 is a reply to message #536693] Mon, 31 May 2010 09:06 Go to previous message
Eclipse UserFriend
Originally posted by: vanbeerst.gmail.com

I found the solution myself :).

I was using the UML metamodel, but I forgot to register the pathmaps :
this.registry.put(UMLPackage.eNS_URI, UMLPackage.eINSTANCE);
Map<URI, URI> uriMap = this.resourceSet.getURIConverter().getURIMap();
URI uri =
URI.createURI(" jar:file:/home/tony/eclipse_helios/eclipse/plugins/org.eclip se.uml2.uml.resources_3.1.0.v201005031530.jar!/ ");
uriMap.put(URI.createURI(UMLResource.LIBRARIES_PATHMAP),
uri.appendSegment("libraries").appendSegment(""));
uriMap.put(URI.createURI(UMLResource.METAMODELS_PATHMAP),
uri.appendSegment("metamodels").appendSegment(""));
uriMap.put(URI.createURI(UMLResource.PROFILES_PATHMAP),
uri.appendSegment("profiles").appendSegment(""));
Previous Topic:[QVTO] Mapping not working
Next Topic:ATL debug, how to use debug/output to print special var values
Goto Forum:
  


Current Time: Tue Jun 17 07:53:59 EDT 2025

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

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

Back to the top