Adobe 38040334 - Dreamweaver CS3 User Manual page 39

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

<a href="javascript:dw.popupTagLibraryEditor()"> Tag Library
Editor </a>]]>
</description>
</menugroup>
<menugroup name="Function Arguments" enabled="true"
id="CodeHints
<description>
...
</description>
<function pattern="ArraySort(array, sort
doctypes="CFML"/>
<function pattern="Response.addCookie(Cookie cookie)"
doctypes="JSP"/>
</menugroup>
</codehints>
JavaScript code hinting
Dreamweaver supports code hinting for the Spry framework. The Spry code hinting file (SpryCodeHints.xml) has
the same basic format as CodeHints.xml. It uses certain new keywords, such as
to associate the class member list with the class (for example, Spry.Data.XMLDataSet). The class
classpattern
member list for the classes is nested inside the menu (methods, properties, and events).
The
tag and its attributes are similar to the
<method>
to have the
classpattern
tag for events, and they are represented by their corresponding icons in the Code Hint pop-up menu. There
event
are also
and
parammenu
parammenuitem
The following example shows the format of a Spry CodeHints.xml file. (The tags in bold are described in "The
CodeHints.xml file" on page 32.):
<function pattern="XMLDataSet(xmlsource, xpath, {options})"
caseSensitive="true" />
<menu classpattern="Spry.Data.XMLDataSet">
<property pattern="url" icon="shared/mm/images/hintMisc.gif" />
<property pattern="xpath" icon="shared/mm/images/hintMisc.gif" />
...
...
<method pattern="getData()" icon="shared/mm/images/hintMisc.gif" />
<method pattern="getData()" icon="shared/mm/images/hintMisc.gif" />
<method pattern="loadData()" icon="shared/mm/images/hintMisc.gif" />
<method pattern="getCurrentRow()" icon= ".../hintMisc.gif" />
<method pattern="setCurrentRow(rowID)" icon= ".../hintMisc.gif" />
<method pattern="setCurrentRowNumber(rowNumber)" icon= ".../hintMisc.gif" />
<method pattern="getRowNumber(rowObj)" icon= ".../hintMisc.gif" />
<method pattern="setColumnType(columnName, columnType)" icon= ".../hintMisc.gif" />
<parammenu pattern='"' name="columnName" index="0" type="spryDataReferences">
</parammenu>
<parammenu pattern='"' name="columnType" index="1" type="enumerated">
<parammenuitem label="integer" value="integer" icon=".../hintMisc.gif"/>
<parammenuitem label="image" value="image" icon=".../hintMisc.gif"/>
<parammenuitem label="date" value="date" icon=".../hintMisc.gif"/>
<parammenuitem label="string" value="string" icon=".../hintMisc.gif"/>
</parammenu>
_
_
Function
Arguments">
attribute to drive the association. Also there is a
tags to support parameter hinting.
_
_
type, sort
order)"
method
tag and its attributes, but the parent
function
property
DREAMWEAVER CS3
Extending Dreamweaver
, and there is a new attribute
tag needs
menu
tag for properties and an
33

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents