117
9
CHAPTER 9
The Source Control
Integration API
The Source Control Integration API lets you write shared libraries to extend the Macromedia
Dreamweaver 8 Check In/Check Out feature using source control systems (such as Sourcesafe
or CVS).
Your libraries must support a minimum set of API functions for Dreamweaver to integrate
with a source control system. And, your libraries must reside in the Program Files/Common
Files/Macromedia/2004/Source Control folder.
When Dreamweaver starts, it loads each library. Dreamweaver determines which features the
library supports by calling
GetProcAddress()
for each API function. If an address does not
exist, Dreamweaver assumes the library does not support the API. If the address exists,
Dreamweaver uses the library’s version of the function to support the functionality. When a
Dreamweaver user defines or edits a site and then selects the Web Server SCS tab, the choices
that correspond to the DLLs that loaded from the Program Files/Common Files/
Macromedia/2004/Source Control folder appear (in addition to the standard items) on the
tab.
To create a Site > Source Control menu to which you can add custom items, add the
following code in the Site menu in the menus.xml file:
<menu name="Source Control" id="DWMenu_MainSite_Site_Source¬
Control"><menuitem dynamic name="None"file="Menus/MM/¬
File_SCSItems.htm" id="DWMenu_MainSite_Site_NewFeatures_¬
Default" />
</menu>
000_DW_API_Print.book Page 117 Wednesday, July 20, 2005 11:58 AM
Summary of Contents for DREAMWEAVER 8-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 16: ......
Page 28: ...28 The File I O API...
Page 38: ...38 The HTTP API...
Page 68: ...68 Flash Integration...
Page 100: ...100 The Database API...
Page 116: ...116 The JavaBeans API...
Page 144: ...144 The Source Control Integration API...
Page 146: ......
Page 254: ...254 Workspace...
Page 298: ...298 Site...
Page 354: ...354 Document...
Page 396: ...396 Page Content...
Page 488: ...488 Design...
Page 550: ...550 Code...