|Use a UML model with a profile [message #626742]
||Tue, 24 June 2008 12:08
Originally posted by: kfestz.no-spam.com|
I'm trying to use a UML model with a profile programatically in a
My app does a model-to-model transformation in ATL.
So I don't use EMF directly but ATL does, and I have access to the
In my model I have some references to a profile :
My profile 'Test.profile.uml' is in the same folder as my model.
That's why the references in my model consist only of the name of the
file. But when I try to load my model, by means of the ATL API, an
exception is raised :
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Package with
uri 'http:///schemas/Test/_UiwQwDhYEd2PFcRE_i9KZg/0' not found.
( file:///D:/Stage/eclipse-modeling-ganymede-RC1-win32/workspa ce/LaunchAtlUml/A,
So the profile is not seen because apparently my app doesn't look for it
in the folder where my model is. If I change the profile reference to a
path like '/C:/MyPath/Test.profile.uml, it works fine.
So I tries a lot of things with the URIConverter but nothing seems to
work. How can I make EMF looks into the folder where my model is to find
Powered by FUDForum
. Page generated in 0.03768 seconds