Chapter 9 Accessing objects using VBScript
This add-in helps you define commands to call executable programs or VB scripts using the Customize Commands dialog box from the Tools application menu.
Commands you define can appear as submenus only in the Execute Commands menu items and in the Import and Export menu items of the File application menu, but not in objects contextual menu. You can hide their display in the menu while keeping their definition.
Usage You should use it when you want to define a unique or very few commands.
For more information on customized commands, see the "Using customized commands" section.
This add-in uses a resource file (XEM, XDB, XOL, XPL or XSL) to customize menus by filling them with commands that call method scripts.
Methods and menus are created under the node of their corresponding metaclass, for example the contextual menu of a process is defined under the \Profile\Process\Menu node. You can filter methods and menus using a stereotype or a criterion.
However, the resource file must always be attached to the model in order for the commands to be displayed.
Usage You should use it when you want to define commands for a specific target, such as Sybase Integration Orchestrator or PowerBuilder for example.
For more information on how to customize menus using a resource file, see "Defining methods in a profile" and "Defining menus in a profile" in the Advanced User Documentation .
Ease the XML syntax writing
The XML syntax of a menu defined in the Menu page of the resource editor is the same for XML file and ActiveX add-ins. You can use the interface of the resource editor to visualize in the XML page the syntax of a menu you created in the Menu page to help you construct the same XML syntax in your ActiveX or XML file. For more information on XML files, see the "XML file add-in" section.
This add-in uses an ActiveX which implements a specific interface that defines methods.
These methods are invoked by PowerDesigner in order to dialog with menus and execute commands that are defined by the ActiveX.
You must enable the ActiveX in PowerDesigner using the Add-ins general option. For more information on this general option, see "Managing add-ins" in the "Using the PowerDesigner Interface" chapter.
Usage You should use it when your plug-in requires more complex interaction between itself and PowerDesigner. Such as enabling and disabling menu items based on object selection, interaction with the windows display environment or for plug-ins written in other languages, such as Visual Basic.NET or C++.
For more information on how to customize menus using an ActiveX, see the "ActiveX add-in" section.
This add-in uses an XML file, which is a simple declarative program with a language linked to an .EXE file or a VB script.
Commands linked to the same applications (for example, ASE, IQ etc.) should be gathered into the same XML file.
You must enable the XML file in PowerDesigner using the Add-ins general option. For more information on this general option, see "Managing add-ins" in the "Using the PowerDesigner Interface" chapter.
Usage You should use it when you want to define several commands that will always be available independently from the target you selected.
For more information on how to customize menus using an XML file, see the "XML file add-in" section.
Copyright (C) 2005. Sybase Inc. All rights reserved. |