beautypg.com

Dreamweaver.codehints.resetmenu() – Adobe Dreamweaver API Reference CS5 User Manual

Page 448

background image

443

DREAMWEAVER API REFERENCE

Code

Last updated 8/27/2013

The

bClassPattern

argument is a Boolean value. If set to

true

, states that the function belongs to a "class" instance

and is not static. The default value is

false

. This argument is optional.

The

bAddToObjectMethodList

argument is a Boolean. If set to true, it enables the user to add a list of static

functions. The default value is

true

. This argument is optional.

The

restriction

argument is a string. This argument is optional and if not specified, it does not place any

constraint. On a web page that contains both client-side and server-side languages, you can use this argument to
restrict the use of code hints to one of the following:

A specific language section

A code block

Returns
Nothing.

Example
The following example of the

dw.codeHints.addFunction()

function adds the function name pattern

out.newLine()

to the Code Hints menu group

CodeHints

_

Object

_

Methods

and makes it active only for

JSP

document types:

dw.codeHints.addFunction(

"CodeHints_Object_Methods",
"out.newLine()",
"JSP")

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.