Customization > Extensibility Through Profiles, Stereotypes, Tag Definitions and Scripts > Advanced extensibility through stereotype scripts and script items > Extending context menu commands through stereotypes and scripts > Hiding the scope to package command, and new and populate submenu commands through a stereotype
  
Hiding the scope to package command, and new and populate submenu commands through a stereotype
Typically, you will want to create Stereotypes within a profile Package.
This topic documents creating a Stereotype through the Packages pane. For information about using a Profile Diagram to create a Stereotype and specify valid model item types, see Overview of profile diagrams.
To hide the scope to package command, and new and populate submenu commands through a stereotype:
1. Right-click the profile Package, point to New, point to UML, point to Profiles, and then click Stereotype.
2. Type a name for the Stereotype, and then press the Enter key.
If you want the display name of the Stereotype in Modeler to be different from its real name: on the General tab of the Stereotype's property pages, type the display name in the Name Alias box.
3. Open the Stereotype's Property Pages, and select valid diagram types for the Stereotype (the Stereotype can be applied only to diagrams whose type is valid):
a. Click the Items tab.
b. In the drop-down list box select Model Item Types, and then click the Link button.
c. In the middle or right pane, select the check boxes associated with valid diagram types.
d. In the middle or right pane, clear the check boxes associated with invalid diagram types.
e. Click OK.
4. Click the Directly-Stereotyped Options tab.
5. Select the Hide Creation Commands check box
The New and Populate submenus will be hidden for any item or diagram that is stereotyped directly by the Stereotype. However, the Hide Creation Commands does not hide variability commands.