Reorganizing the elements in the Add New menu

You can reorganize the groups and their elements located in the Add New menu.

About this task

If there are groups or elements that you do not use by project, you can reorganize this section of the Add New menu to list only those groups/elements that you want to use.

To reorganize the Add New menu, use the following properties in General::Model:

  • SubmenuList
  • Submenu1List
  • Submenu1Name
  • Submenu2List
  • Submenu2Name
  • Submenu3List
  • Submenu3Name
  • Submenu4List
  • Submenu4Name

A definition for each property displays on the Properties tab of the Features window.

The following example shows how you could reorganize the groups and their elements located on the Add New menu. In this scenario, you want to show only the activity diagram, flowchart, and panel diagram in the Diagrams group of the Add New menu for your project. In addition, you want to remove the Tables and Charts group.

Note: This example assumes that the properties mentioned in this topic have the default values.

Procedure

  1. Open your project.
  2. Open the Features window. Choose File > Project Properties.
  3. Locate General::Model::Submenu1List.
    This property is associated with the Submenu1Name property, which has a value of Diagrams.
  4. Type ActivityDiagram, Flowchart, and PanelDiagram as the values for Submenu1List.
  5. Click OK.
  6. Locate General::Model::SubmenuList.
    This property controls what submenu groups are displayed on the Add New menu.
  7. Delete Submenu3 from the values entered for the SubmenuList property.
    Submenu3 specifies the Tables and Charts submenu that can display on the Add New menu.
  8. To confirm your changes, right‑click a package in your project and select Add New. Only those diagram types you entered in Submenu1List display, as long as they are applicable to your project. Meaning, if a flowchart is not applicable to your project, that choice does not display on the Add New menu under the Diagrams category. In addition, the Tables and Charts submenu item no longer displays on the Add New menu.

Results

Note the following information:

  • Whatever element that is removed from a group from the Add New menu will show in the middle section of the Add New menu if it is relevant for your project. When you remove a group, all the elements in that group is displayed in the middle section of the Add New menu. Elements must display somewhere if they are valid elements for your project.
  • The Submenu1List and Submenu1Name properties are also used by Tools > Diagrams. When you edit the Submenu1List, to have it take effect on Tools > Diagrams, you must save your project, close it, and then open it again. In addition, if you delete the Submenu1 value from the SubmenuList property, all the Rhapsody® diagram choices display in the Tools menu, instead of under Tools > Diagrams (after you save your project and open it again).
  • If the AddNewMenuStructure property is in use, that property overrides the properties mentioned in this topic.