Specifications

486
dreamweaver.getPreferenceString()
Availability
Dreamweaver MX
Description
Lets you retrieve a string preference setting that you stored for an extension.
Arguments
section key default_value
section a string that specifies the preferences section that contains the entry.
key a string that specifies the value to be retrieved.
default_value the default string value that Dreamweaver returns if it cannot find the entry.
Returns
The requested preference string, or if the string cannot be found, the default value.
Example
var txtEditor = getExternalTextEditor(); //set default text Editor value
txtEditor = dreamweaver.getPreferenceString("My Extension", "Text Editor",
txtEditor);
dreamweaver.setPreferenceInt()
Availability
Dreamweaver MX
Description
Lets you set an integer preference setting for an extension, to be stored with Dreamweaver
preferences when Dreamweaver is not running.
Arguments
section, key, new_value
section a string that specifies the preferences section that contains the entry. If the section
does not exist, Dreamweaver creates it.
key a string that specifies the entry into which the value is to be written. If the entry does not
exist, Dreamweaver creates it.
new_value an integer that contains the integer preference value that is to be saved.
Returns
true if successful; false otherwise.
Example
var snapDist = getSnapDistance();
if(snapDist > 0)
{
dreamweaver.setPreferenceInt("My Extension", "Snap Distance", snapDist);
}