Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Programmatically get a list of registered profiles...
Programmatically get a list of registered profiles... [message #1751401] Mon, 09 January 2017 20:06 Go to next message
Patrik Nandorf is currently offline Patrik NandorfFriend
Messages: 195
Registered: January 2013
Location: Sweden
Senior Member
...preferably as a list of EPackages.

I found this code
IRegisteredProfile[] regProfiles = org.eclipse.papyrus.uml.extensionpoints.Registry.getRegisteredProfiles();
but don't know how to get the Epackage from the IRegisteredProfile.

Similarly I'd like to get the Stereotypes of the profile as Eclasses if possible.

Thanks!
/Patrik

[Updated on: Mon, 09 January 2017 20:08]

Report message to a moderator

Re: Programmatically get a list of registered profiles... [message #1751402 is a reply to message #1751401] Mon, 09 January 2017 20:39 Go to previous message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi, Patrik,

What the profile registry offers is the URI of the profile. You need to use that to load it in a resource set of your own choosing. The rest of what the registry provides is just some metadata for presentation in the dialog in the Papyrus UI.

HTH,

Christian
Previous Topic:Adapt shape appearance based on complex constraints
Next Topic:sysml model migration not working (mars to neon)
Goto Forum:
  


Current Time: Thu Apr 18 11:40:16 GMT 2024

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

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

Back to the top