The CWSync utility manages file synchronization between Borland
JBuilder and CodeWright. This utility requires JBuilder 7.0 or newer
and CodeWright 7.5 or later. The utility consists of the following
files:

o CWSYNC.DLL, a CodeWright Add-On DLL. 

o JBuilderSync.jar, a compressed file that contains the stand-alone
program to provide automatic loading of the synchronization utility and
a user interface for its configuration. 

o JBSyncCW.dll, loaded by the .jar file to synchronize JBuilder with
CodeWright. 


Installation
=============================================
Verify the CodeWright CWSync.DLL Installation

    Complete the following steps to configure the CodeWright
    synchronization:

    1. Place cwsync.dll in the CodeWright directory
        c:\program files\borland\codewright\cwsync.dll

    2. In CodeWright, go to Tools|Customize|Libraries to verify that
    Synchronization is marked. If not listed, click the ADD button and
    select the CWSYNC.DLL from those listed in the CodeWright directory.
    This will add the following line to the cwright.ini file, which
    causes the library to be loaded into CodeWright:
    [LibPreLoad]
LibPreload=cwsync.dll
    
    3. By default, the JBuilder synchronization is set to work with
    JBuilder 8. If you wish to sync to JBuilder 7, go to
    Tools|Customize|Toolbars|Bindings, select the JBuilderSync toolbar
    and change the binding from 'JB8' to 'JB7'.

Complete the JBuilder Setup

    Complete the following steps to configure the JBuilder
    synchronization:

    1. Place JBSyncCW.dll in the JBuilder \bin subdirectory
        c:\jbuilder8\bin\jbsynccw.dll

    2. Place jbuildersync.jar in the JBuilder \lib\ext subdirectory
        c:\jbuilder8\lib\ext\jbuildersync.jar
    
    3.  Start the JBuilder IDE. You will see two additional menu items: 

    	o A "CodeWright!" menu item on the Tools menu in JBuilder. You can 
    	  later select it to launch CodeWright and synchronize files. 

    	o A "CodeWright Configuration..." menu item on the Tools menu in
    	  JBuilder. Select it to launch a sync configuration dialog box.

    4.  From the Tools menu, choose CodeWright Configuration to access
    the Borland JBuilder Sync Configuration dialog. 

    5.  Enter the full path to the CodeWright executable (CW32.EXE) in
    the CodeWright command line (if it is not already in your PATH), or
    use the Browse button to locate the path. 

    6.  The options in the dialog provide runtime functionality between
    JBuilder and CodeWright. They are set by default. Configure them as
    desired, according to the descriptions provided in the topic Sync
    Configuration Options. 

    7.  Activate the JBuilderSync.jar file (this step may already be
    completed from actions performed in step 4). To do this, select
    CodeWright! or CodeWright Configuration... from the JBuilder Tools
    menu. Once started, JBSyncCW will remain active until JBuilder shuts
    down. 

A First View 
=============================================
    Once you have set up the JBuilder/CodeWright synchronization
    appropriately, complete the following steps to see the
    synchronization in action.

    What You See in JBuilder

        In JBuilder, you should see the following functionality:

        1.  Start JBuilder and open a sample project. 

        2.  Make a change to a file in JBuilder. 

        3.  Select CodeWright! from the Tools menu, press the
        CodeWright! toolbar button, or use the keyboard shortcut
        [Alt]-[T ]-[O]. CodeWright will be activated with all the same
        files loaded that were loaded in the JBuilder text editor. 

        4.  Switch tasks from JBuilder to CodeWright; CodeWright will
        automatically reload any source files that were changed in
        JBuilder, maintaining the cursor position. 

    What You See in CodeWright

        In JBuilder, you should see the following functionality:

        1.  Open or give focus to CodeWright.

        2.  Edit a file.

        3.  Press the Activate button  on the CodeWright JBuilder
        toolbar. (If you do not see the JBuilder toolbar, make it
        Visible on the Toolbars tab of the Tools|Customize|Toolbars
        dialog.) This button does one of two things: 

        	o JBuilder is already running, it will save modified files in
        CodeWright and activate JBuilder, synchronizing the files in the
        IDE. 

        	o If JBuilder if it is not already running, it will ask you to
        launch JBuilder. Open files are not saved unless you press the
        button again after JBuilder is running. 

