Executable: JDoc2CWLex.exe
Author:     Clint Weisbrod 
Date:       July 21, 2003

JDoc2CWLex.exe provides an easy method to gather Java package keywords for
CodeWright ChromaCoding. JDoc2CWLex.exe does this by parsing JavaDoc URL's
allowing for the selection of various Java packages defined in the JavaDoc.
This application parses the package overview for Java class, interface,
exception and error names and formats them using the proper CodeWright lexer.ini
syntax. The results can be copied and pasted into the appropriate section of
CodeWright's lexer.ini file. With additional Java Package ChromaCoding elements,
language coloring is enhanced for Java files in CodeWright.

To use this application:

1.) Execute JDoc2CWLex.exe
2.) Paste or type in the full location of the JavaDoc into the JavaDoc URL
    field: For example: http://java.sun.com/j2se/1.4.2/docs/api/index.html
3.) Click in the Package field. The JavaDoc contents are parsed. 
4.) Select a package from the resulting drop down list.
5.) Select the checkbox for each group you wish to include.
6.) Select the CodeWright keyword user group for each group you have selected.
    The formatted lines are displayed in the box at the bottom of the
    application window.
7.) Copy and paste the resulting lexer lines into the appropriate location in
    the lexer.ini file. In most cases this will be at the end of the
    [ChromaLexer-Java] section in the lexer.ini file.

Working example:

Paste http://java.sun.com/j2se/1.4.2/docs/api/index.html in the JavaDoc URL
field. Place the cursor in the Package field.  Select java.sql and enable
Interfaces, Classes, Exceptions. Select User1 for Interfaces, User2 for Classes,
and User3 for Exceptions. The following formatted lines appear.

ChromaAddWords=CHROMA_WT_USER1 AttributedCharacterIterator CharacterIterator
ChromaAddWords=CHROMA_WT_USER2 Annotation AttributedCharacterIterator.Attribute AttributedString
ChromaAddWords=CHROMA_WT_USER2 Bidi BreakIterator ChoiceFormat CollationElementIterator
ChromaAddWords=CHROMA_WT_USER2 CollationKey Collator DateFormat DateFormat.Field DateFormatSymbols
ChromaAddWords=CHROMA_WT_USER2 DecimalFormat DecimalFormatSymbols FieldPosition Format
ChromaAddWords=CHROMA_WT_USER2 Format.Field MessageFormat MessageFormat.Field NumberFormat
ChromaAddWords=CHROMA_WT_USER2 NumberFormat.Field ParsePosition RuleBasedCollator
ChromaAddWords=CHROMA_WT_USER2 SimpleDateFormat StringCharacterIterator ParseException
ChromaAddWords=CHROMA_WT_USER3 ParseException

Copy the ChromaAddWords lines from the application window.  Make sure CodeWright
is closed.  Open the lexer.ini file located in CodeWright home directory. Locate
the [Java] section.  Paste the lines at the end of the [ChromaLexer-Java]
section.  Save and close the lexer.ini file.  Re-start CodeWright.

Special thanks to Clint Weisbrod for providing this utility to the CodeWright
community.