Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Registering UML profiles
[ATL] Registering UML profiles [message #86173] Wed, 09 July 2008 08:29 Go to next message
Eclipse UserFriend
Originally posted by: ebadgley.mitre.org

Greetings,

I've got a situation where I want to streamline our ATL transformations, and
I'm a bit confused as to how to accomplish it.

I have three Eclipse plugin projects:

1) a plugin that simply contains our UML2 profile, and the appropriate
extension to access said profile with a "pathmap://" URI;
2) a Java plugin that uses information from an external database to build a
UML2 model, with the profile from 1) applied; and
3) a project containing our ATL transformation files, so that we can take
the UML2 model generated from 2) and transform it into various and sundry
other forms.

I'm having trouble figuring out how to set things up for our ATL
transformations so that they can access the UML2 profile from within the #1
plugin. For example, the first transformation I'm starting with (to get my
feet wet) is a simple UML-to-UML copy, based on
UML2Copy/UML2ProfileCopy/UML2Profiles.atl. On the launch configuration
page, I need to provide the paths to two source models-- IN and NASPROF
(which is our profile)-- and one target model, OUT. When I try to use the
registered "pathmap://" URI to tell ATL where the NASPROF .profile.uml file
is located, I get a NullPointerException-- same thing if I try to use a
"platform:/plugin/..." URI to indicate where the profile is located within
my Eclipse environment.

Does anyone have any suggestions? I'd like to be able to register my
..profile.uml file in the EMF registry so it's immediately available, or
something equally "direct". Right now I am not running the ATL
transformations programmatically, but I will get there at some point, and if
doing that sooner rather than later will help me accomplish this, I have no
problems with that.

I feel like there is something really obvious I am missing here, but I've
been searching the newsgroups and my brain is a bit fried right now...

Thanks,
Ellen Badgley
Re: [ATL] Registering UML profiles [message #89290 is a reply to message #86173] Fri, 29 August 2008 07:39 Go to previous message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 147
Registered: July 2009
Senior Member
Ellen Badgley wrote:
> Greetings,
>
> I've got a situation where I want to streamline our ATL transformations, and
> I'm a bit confused as to how to accomplish it.
>
> I have three Eclipse plugin projects:
>
> 1) a plugin that simply contains our UML2 profile, and the appropriate
> extension to access said profile with a "pathmap://" URI;
> 2) a Java plugin that uses information from an external database to build a
> UML2 model, with the profile from 1) applied; and
> 3) a project containing our ATL transformation files, so that we can take
> the UML2 model generated from 2) and transform it into various and sundry
> other forms.
>
> I'm having trouble figuring out how to set things up for our ATL
> transformations so that they can access the UML2 profile from within the #1
> plugin. For example, the first transformation I'm starting with (to get my
> feet wet) is a simple UML-to-UML copy, based on
> UML2Copy/UML2ProfileCopy/UML2Profiles.atl. On the launch configuration
> page, I need to provide the paths to two source models-- IN and NASPROF
> (which is our profile)-- and one target model, OUT. When I try to use the
> registered "pathmap://" URI to tell ATL where the NASPROF .profile.uml file
> is located, I get a NullPointerException-- same thing if I try to use a
> "platform:/plugin/..." URI to indicate where the profile is located within
> my Eclipse environment.
>
> Does anyone have any suggestions? I'd like to be able to register my
> .profile.uml file in the EMF registry so it's immediately available, or
> something equally "direct". Right now I am not running the ATL
> transformations programmatically, but I will get there at some point, and if
> doing that sooner rather than later will help me accomplish this, I have no
> problems with that.
>
> I feel like there is something really obvious I am missing here, but I've
> been searching the newsgroups and my brain is a bit fried right now...
>
> Thanks,
> Ellen Badgley

Hello Ellen,

Let's start with the "platform:/plugin/..." scenario: in the ATL launch
config, you can browse for files that contain models. You can also type
in the path to the model yourself. When you enter a URI instead of a
file name, you need to tell ATL by prepending "uri:" to the URI, like
this: "uri:platform:/plugin/...". This works for meta-models and should
work for models too. Let me know if it works for you!

Regards,
Dennis
Previous Topic:[ATL] Abstract rule : do {}
Next Topic:[ATL] transformation efficiency?
Goto Forum:
  


Current Time: Fri Apr 26 05:15:13 GMT 2024

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

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

Back to the top