Getcodeviewdropcode() – Adobe Extending Dreamweaver CS4 User Manual

Page 320

Advertising
background image

314

EXTENDING DREAMWEAVER CS4

Components

<menubar xmlns:MMString="http://www.macromedia.com/schemes/dat/string/" name=""

id="DWCFCsContext">

<menu MMString:name="Components/ColdFusion/CFCs/CFCsMenus_xml/DWContext_CFCs/menu/name"

id="DWContext_CFCs">

<menuitem

MMString:name="Components/ColdFusion/CFCs/CFCsMenus_xml/DWContext_CFCs_createNewCFC/menuitem
/name" domRequired="false" enabled="true" command="createCFC()"
id="DWContext_CFCs_createNewCFC" />

<menuitem

MMString:name="Components/ColdFusion/CFCs/CFCsMenus_xml/DWContext_CFCs_editCode/menuitem/nam
e" domRequired="false" enabled="canGetSelectedCFC()" command="editCFC();"
id="DWContext_CFCs_editCode" />
<separator/>

<menuitem

MMString:name="Components/ColdFusion/CFCs/CFCsMenus_xml/DWContext_CFCs_getDetails/menuitem/n
ame" domRequired="false" enabled="canGetDetails()" command="getDetails()"
id="DWContext_CFCs_getDetails" />

<menuitem

MMString:name="Components/ColdFusion/CFCs/CFCsMenus_xml/DWContext_CFCs_getDescription/menuit
em/name" domRequired="false" enabled="canGetSelectedCFC()" command="getDescription()"
id="DWContext_CFCs_getDescription" />

<separator/>
<menuitem

MMString:name="Components/ASP_NET_Csharp/Connections/ConnectionsMenus_xml/DWShortcuts_Server
Component_Insert/menuitem/name" domRequired="false" enabled="insertCFCEnabled();"
command="clickedInsertCFC();" id="DWShortcuts_ServerComponent_Insert" />

</menu>

</menubar>

getCodeViewDropCode()

Availability
Dreamweaver MX.

Description
This function gets the code that is either dragged, cut, or copied into the Code view from the Components panel.

Arguments

componentRec

•

The

componentRec

argument is an object.

Returns
The string that contains the code for the component.

Example
The following example identifies the code for an Adobe ColdFusion Component (CFC):

Advertising
This manual is related to the following products: