|
Re: enumeration [message #1697729 is a reply to message #1697724] |
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 #1697787 is a reply to message #1697759] |
Mon, 08 June 2015 13:21 |
|
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?
|
|
|
Powered by
FUDForum. Page generated in 0.02537 seconds