Chapter 4 Managing Profiles
When you create a menu, you have to define the following properties:
Property | Description |
---|---|
Name | Name of the menu that will appear in the PowerDesigner interface. You can define a shortcut key in the menu caption by adding an ampersand before the shortcut key letter, this letter will be underlined in the menu |
Comment | Additional information about the menu |
Location | List of locations where to display the new menu. This list is available only when the selected metaclass is a model or a diagram. For object metaclasses, the unique value is Objects Contextual menu and thus hidden |
Menu tab | Menu creation zone, you can use tools to easily add commands, contextual menus, and menu separators to the new menu |
XML tab | XML summary of what was defined in the Menu tab |
You can use the following tools in the Menu tab to easily create menus and commands:
Tool | Function |
---|---|
Opens a selection dialog box to let you select one or several methods or transformations in order to create associated commands. You can select among methods or transformations defined in the current metaclass and in parents of the current metaclass. When you select a method or a transformation, it is not removed from the list since you can reuse it at different menu levels | |
Creates a separator under the selected item at the same menu level | |
Creates a submenu under the selected menu item or the root menu | |
Creates a new command in the menu. Creating a command in a menu does not create the corresponding method or transformation in the correct metaclass; you still have to create the method or transformation under the appropriate metaclass and make sure you use the same name as defined in the menu | |
Deletes the selected item in the menu tree |
When you add a command using an existing method or transformation, the following is added to the menu:
<Caption> (<Method/Transformation name>)
The caption is the command name that will appear in the menu. You can define a shortcut key in the caption by adding an ampersand before the shortkey letter. This letter will be underlined in the menu.
Method/Transformation name is the name that identifies the script.
Methods or transformations associated with menu commands are not synchronized with methods or transformations defined in a metaclass. If you modify the name or the script of a method or transformation, you should use the Find tool to locate and update all the commands using this method or transformation.
Copyright (C) 2005. Sybase Inc. All rights reserved. |