Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Retrieving a Profile through a ProfileApplication
Retrieving a Profile through a ProfileApplication [message #615703] Sun, 13 May 2007 18:54
Andrew Carton is currently offline Andrew CartonFriend
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.
Previous Topic:No Cast in case of templates
Next Topic:Exporting UML diagram and profile
Goto Forum:
  


Current Time: Thu May 24 00:46:45 GMT 2018

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

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

Back to the top