Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [ATL] pathmap access for Profiles
[ATL] pathmap access for Profiles [message #104237] Wed, 29 April 2009 07:26
Eclipse UserFriend
Hello,

Applying a profile/stereotpye to an UML model programmatically works
fine but the UML profile is accessed by the standard java file protocol.

How can I apply UML Profiles setting the pathmap protocol ?

That's my code snippet used so far:

Bundle bundle = Platform.getBundle("com.test.atl.UMLTransformations");
URL url = bundle.getEntry("/profile/Test.profile.uml");

//here I need to convert the URL to standard java protocol otherwise
//error message occurs
URL urlReal = FileLocator.resolve(url);

....
path.put("PRO", urlReal.getPath());

Is it possible to apply profiles without the usage of FileLocator.resolve ?


I have to use ATL 2.02


Regards,

Deepak
Previous Topic:[ATL] Trying to capture record of transformation
Next Topic:[QVTO] mapping main or just main (Newbie question)
Goto Forum:
  


Current Time: Sun Jul 06 16:02:12 EDT 2025

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

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

Back to the top