382
Chapter 18: Code
dreamweaver.codeHints.resetMenu()
Availability
Dreamweaver MX.
Description
Resets the specified menu tag or function tag to its state immediately after Dreamweaver reads the
CodeHints.xml file. In other words, a call to this function erases the effect of previous calls to the
addMenu()
and
addFunction()
functions.
Arguments
menuGroupId, pattern, {doctypes}
•
The
menuGroupId
argument is the ID string attribute of a
menugroup
tag.
•
The
pattern
argument is a string that specifies the pattern attribute for the new
menu
or
function
tag to be reset.
•
The
doctypes
argument, which is optional, specifies that this menu is active for only certain
document types. You can specify the
doctypes
argument as a comma-separated list of
document type IDs. For a list of Dreamweaver document types, see the Dreamweaver
Configuration/Documenttypes/MMDocumentTypes.xml file.
Returns
Nothing.
Example
Your JavaScript code might build a Code Hints menu that contains user-defined session variables.
Each time the list of session variables changes, that code needs to update the menu. Before the
code can load the new list of session variables into the menu, it needs to remove the old list.
Calling this function removes the old session variables.
dreamweaver.codeHints.showCodeHints()
Availability
Dreamweaver MX.
Description
Dreamweaver calls this function when the user opens the Edit > Show Code Hints menu item.
The function opens the Code Hints menu at the current selection location in Code view.
Arguments
None.
Returns
Nothing.
Example
The following example opens the Code Hints menu at the current insertion point in the
document when it is in Code view.
dw.codeHints.showCodeHints()
000_DW_API_Print.book Page 382 Wednesday, August 20, 2003 9:14 AM
Summary of Contents for DREAMWEAVER MX 2004
Page 1: ...Dreamweaver API Reference...
Page 24: ...24 Contents...
Page 32: ......
Page 70: ...70 Chapter 5 Fireworks Integration...
Page 76: ...76 Chapter 6 Flash Integration...
Page 116: ...116 Chapter 9 The JavaBeans API...
Page 140: ......
Page 152: ...152 Chapter 11 Application...
Page 218: ...218 Chapter 12 Workspace...
Page 248: ...248 Chapter 13 Site...
Page 292: ...292 Chapter 14 Document...
Page 378: ...378 Chapter 17 Design...
Page 430: ...430 Chapter 18 Code...
Page 486: ...486 Index...