Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Re: enumeration
Re: enumeration [message #1697730] Sun, 07 June 2015 12:29 Go to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1222
Registered: July 2009
Location: Canada
Senior Member


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.



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 #1697738 is a reply to message #1697730] Sun, 07 June 2015 22:38 Go to previous message
Charles Rivet is currently offline Charles RivetFriend
Messages: 219
Registered: May 2014
Location: Canada
Senior Member

This is exactly the approach we have taken in the Papyrus-RT project. We have an enum for the valid priorities that can be assigned to a message in the UML-RT runtime. This enum is defined in a model library that is published as part of our plugin. We do not currently have a model template - but that should be coming.

/Charles Rivet
Previous Topic:Keeping CSS theme when copying models
Next Topic:class type in palette
Goto Forum:

Current Time: Thu Dec 03 23:58:11 GMT 2020

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

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

Back to the top