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 extended context menu commands through a stereotype
  
Hiding extended context menu commands through a stereotype
Typically, you will want to create Stereotypes within a profile Package.
To hide extended context menu 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 Custom Meta Type Menus check box.
Any extended context menu commands will be hidden for any item or diagram that is stereotyped directly by the Stereotype.