Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Use a UML model with a profile
Use a UML model with a profile [message #626742] Tue, 24 June 2008 12:08
Eclipse UserFriend
Originally posted by: kfestz.no-spam.com

Hi,

I'm trying to use a UML model with a profile programatically in a
standalone app.
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
ResourceSet.
In my model I have some references to a profile :

xsi:schemaLocation="http:///schemas/Test/_UiwQwDhYEd2PFcRE_i9KZg/0
Test.profile.uml#_UjU4gDhYEd2PFcRE_i9KZg">

<references xmi:type="ecore:EPackage"
href="Test.profile.uml#_UjU4gDhYEd2PFcRE_i9KZg"/>

<appliedProfile href="Test.profile.uml#_JotlEDhYEd2PFcRE_i9KZg"/>

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,
23, 93)

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
my profile?
Previous Topic:programmatically create RSA Comments
Next Topic:[Announce] MDT UML2 2.2.0 is available
Goto Forum:
  


Current Time: Tue Mar 31 08:15:04 GMT 2020

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

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

Back to the top