Re: enumeration [message #1697730] |
Sun, 07 June 2015 12:29 |
|
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 #1697738 is a reply to message #1697730] |
Sun, 07 June 2015 22:38 |
|
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
|
|
|
Powered by
FUDForum. Page generated in 5.08514 seconds