Adobe 38040334 - Dreamweaver CS3 User Manual page 362

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

Advertisement

Note: Most JavaScript extensions do not need to be changed to write to the user Configuration folder. Only C shared
libraries that write to the Configuration folder need to be updated to use the file access and multiuser configuration API
functions.
When you delete a file from the Dreamweaver Configuration folder, Dreamweaver adds an entry to a mask file to
indicate which files in the Configuration folder should not appear in the user interface. A masked file or folder does
not appear to exist to Dreamweaver although it might physically exist in the folder.
For example, if you use the trash can icon in the Snippets panel to delete a Snippets folder called javascript and a file
called onepixelborder.csn, Dreamweaver writes a file in the user Configuration folder called mm_deleted_files.xml,
which looks like the following example:
<?xml version = "1.0" encoding="utf-8" ?>
<deleteditems>
<item name="snippets/javascript/" />
<item name="snippets/html/onepixelborder.csn" />
</deleteditems>
As Dreamweaver populates the Snippets panel, it reads all the files in the user's Configuration/Snippets folder and
all the files in the Dreamweaver Configuration/Snippets folder, except the Configuration/Snippets/javascript folder
and the Configuration/Snippets/html/onepixelborder.csn file, and it adds the resulting list of files to the Snippets
panel list.
If a C-level extension calls the
/Adobe Dreamweaver CS3/Configuration/Snippets/javascript/onepixelborder.csn
value of
. Likewise, if a JavaScript extension tries to call
false
Files/Adobe/Adobe Dreamweaver CS3/Configuration/Snippets/javascript/onepixelborder.csn")
returns a
value.
null
You can modify the mm_deleted_files.xml file to prevent Dreamweaver from showing files in the user interface, such
as objects, canned content in the new dialog box, and so on. You can call the
add file paths to the mm_deleted_files.xml file.
JS_Object MM_GetConfigFolderList()
Availability
Dreamweaver MX.
Description
This function gets a list of files, folders, or both for the specified folder. If you specify a configuration folder, the
function gets a list of the folders that exists in both the user Configuration folder and the Dreamweaver
Configuration folder, subject to filtering by the mm_deleted_files.xml file.
Arguments
char *fileURL, char *constraints
• The
argument is a pointer to a string that names the folder for which you want a list of the
char *fileUrl
contents. The string must have the format of a file:// URL. The function accepts valid wildcard characters of
asterisks (*) and question marks (?) in the file:// URL string. Use asterisks (*) to represent one or more unspecified
characters, and question marks (?) to represent a single unspecified character.
• The
char *contstraints
MM_GetConfigFolderList()
MM_ConfigFileExists()
argument can be
or
files
function returns files and folders.
function for the
file:///c|Program Files/Adobe
dw.getDocumentDom("file:///c|Program
MM_DeleteConfigfile()
or a
value. If you specify
directories
null
DREAMWEAVER CS3
Extending Dreamweaver
URL, it returns a
, it
function to
, the
null
356

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents