Skip to main content



      Home
Home » Modeling » Papyrus » Programmatically get a list of registered profiles...
Programmatically get a list of registered profiles... [message #1751401] Mon, 09 January 2017 15:06 Go to next message
Eclipse UserFriend
...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 15:08] by Moderator

Re: Programmatically get a list of registered profiles... [message #1751402 is a reply to message #1751401] Mon, 09 January 2017 15:39 Go to previous message
Eclipse UserFriend
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: Mon Jul 07 11:25:24 EDT 2025

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

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

Back to the top