The Papyrus User shall use this functionality from the model explorer in order to create elements in the model. He can decide to display or not this element creation.
In order to not display a menu, a user can edit the model that represents the creation menu and set the attribute visibility to false.
An advanced User is able to create or modify creation menu. This menu is a model that can be edited
An advanced user can contribute to the menu by adding a new plugin that contains:
<extension point="org.eclipse.papyrus.infra.newchild"> <menuCreationModel model="YourCreationMenu.xmi"> </menuCreationModel> </extension>
In the following example, a menu creation for a package is presented. This menu is contained in the folder SimpleUMLTest. We have associated an image for this menu.
In this following example, a creation menu will be specified to allow creation of nested classifier. That 's why the role "nestedClassifier" is precised. The label for this creation is "nestedClass"
In the following example a creation menu is created for activities. In this case, all roles are displayed. Thanks to this, when we want to associate an activity to a state, 3 roles are proposed.
From a stereotyped profile, a model of new child menu can be generated. For example a user after designing a profile, want to have a dedicated menu from this profile/ For the moment this function is not implemented.
The User can modify the creation menu by adding submenus: order about new child menu, precise if the role must be displayed.
It only needed to change the order of element in the corresponding creation menu model
A user can edit a the model that represents the creation menu at runtime for papyrus thanks to a dedicated UI. For the moment this function is not implemented.