beautypg.com

Getcontextmenuid() – Adobe Extending Dreamweaver CS4 User Manual

Page 319

background image

313

EXTENDING DREAMWEAVER CS4

Components

getContextMenuId()

Availability
Dreamweaver MX.

Description
Returns the context menu ID for the component type. Every component type can have a context menu associated with
it. The Context Menu pop-up menus are defined in the ComponentNameMenus.xml file, and they work the same way
as the menu.xml file. The menu string can be static or dynamic. Keyboard shortcuts (accelerator keys) are supported.

Arguments
None.

Returns
A string defining the context menu ID.

Example
The following example sets the Options menu for the Components panel for CFCs associated with the Adobe
ColdFusion server model.The example also defines the keyboard shortcuts for the menu:

function getContextMenuId()

{

return "DWCFCsContext";

}

The DWWebServicesContext of the menu is defined in the file in the
Configuration/Components/ColdFusion/CFCs/CFCsMenus.xml as follows:

This manual is related to the following products: