Retrieving a Profile through a ProfileApplication [message #615703] |
Sun, 13 May 2007 18:54 |
Andrew Carton Messages: 104 Registered: July 2009 |
Senior Member |
|
|
Hi,
I have exported my model from magicdraw. It has a number of profiles
attached including one I created. When I open up the uml file in the
tree editor, I can see the reference to my profile as a profile
Application. I am however, unable to retrieve the profile.
Profile profile = model.getAppliedProfile("MyProfile", true);
This returns null.
System.out.println(model.getAppliedProfiles());
returns (along with the other MD profiles which I excluded)
[ org.eclipse.uml2.uml.internal.impl.ProfileImpl@fa88fb (eProxyURI:
MyProfile.profile.uml#_DNHRNwF5EdyEG6fRrQ6shQ)]
Tried a number of other things unsuccessfully. There doesn't even appear
to register any stereotypes on the items that I can see are applied
through the uml graph editor. A profile application has been changed
from a package import to a directrelationship from previous uml
versions, so how do I go about "getting at" the actual profile?
Thanks,
Andrew.
|
|
|
Powered by
FUDForum. Page generated in 0.05979 seconds