[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.m2m] [ATL] Registering UML profiles
|
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