Specifications

The Dreamweaver JavaScript API 399
casesensitive specifies whether the pattern is case-sensitive. The possible values for
casesensitive are the Boolean values true or false. The value defaults to false if you omit
this argument. If
casesensitive is true, the Code Hints menu pops up only if the text that the
user types exactly matches the pattern specified by the pattern attribute. If
casesensitive is
false, the menu pops up even if the pattern is lowercase and the text is uppercase.
Returns
Nothing.
Example
dw.codeHints.addFunction(
"CodeHints_Object_Methods",
"out.newLine()",
"JSP")
dw.codeHints.resetMenu()
Availability
Dreamweaver MX
Description
This function resets the specified menu tag or function tag to its state immediately after
CodeHints.xml is read. In other words, a call to this function erases the effect of previous calls to
addMenu() and addFunction().
Arguments
menuGroupId, pattern, {doctypes}
menuGroupId
is the ID string attribute of a menugroup tag.
pattern is a string that specifies the pattern attribute for the new menu or function tag to be
reset.
doctypes is an optional argument that specifies that this menu is active for only certain
document types. You can specify
doctypes as a comma-separated list of document type IDs. See
the Dreamweaver Configuration/Documenttypes/MMDocumentTypes.xml file for a list of
Dreamweaver document types.
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 is changed, 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.