Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » enumeration
enumeration [message #1697724] Sun, 07 June 2015 11:03 Go to next message
Muhammad Kashif is currently offline Muhammad KashifFriend
Messages: 52
Registered: April 2015
Member
Hi

Is there any mechanismthat we can model enumerations in our profile in Papyrus, so that whenever a user wants to use our profile he can use the enumeration in whichever way he wants just like we do in different diagrams of Sysml.

Thanku
Re: enumeration [message #1697729 is a reply to message #1697724] Sun, 07 June 2015 12:29 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi,

This question is better directed to the Papyrus newsgroup, which I have
copied in this reply.

Enumerations may be defined in a profile for use as the types of
properties of stereotypes and other classes defined in that profile.
However, if you intend the enumeration to be used in models to which
the profile is applied, then it should be defined in a "library" model
that is deployed together with your profile.

One way to coordinate the application of the profile and the importing
of its accompanying model library is to create a model template: an
otherwise empty model that has the profile applied and a PackageImport
that imports the model library. Register this template on the
org.eclipse.papyrus.uml.diagrams.wizards.templates extension point to
make it available in the New Papyrus Model wizard.

HTH,

Christian

On 2015-06-07 11:03:54 +0000, Ali Khan said:

> Hi
>
> Is there any mechanismthat we can model enumerations in our profile in
> Papyrus, so that whenever a user wants to use our profile he can use
> the enumeration in whichever way he wants just like we do in different
> diagrams of Sysml.
>
> Thanku
Re: enumeration [message #1697759 is a reply to message #1697729] Mon, 08 June 2015 08:43 Go to previous messageGo to next message
Muhammad Kashif is currently offline Muhammad KashifFriend
Messages: 52
Registered: April 2015
Member
I have created new sysml model and applied a profile on that model. Now when right click on model in model explorer and import a registered package it does not show the model library. How can I achieve that?
Re: enumeration [message #1697787 is a reply to message #1697759] Mon, 08 June 2015 13:21 Go to previous message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi,

In the plug-in that contains your library model, you need to add an
extension on the org.eclipse.papyrus.uml.extensionpoints.UMLLibrary
point to register the library model in the Papyrus framework. Then it
should appear in that dialog.

HTH,

Christian

On 2015-06-08 08:43:42 +0000, Ali Khan said:

> I have created new sysml model and applied a profile on that model. Now
> when right click on model in model explorer and import a registered
> package it does not show the model library. How can I achieve that?
Previous Topic:Meta Models
Next Topic:[CDO] Howto remove a resource with Mars M7?
Goto Forum:
  


Current Time: Thu Mar 28 12:21:33 GMT 2024

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

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

Back to the top