[ATL] pathmap access for Profiles [message #104237] |
Wed, 29 April 2009 07:26 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03068 seconds