- From the Actions menu, choose Generate Code.
- From the Generate Code dialog box, from the Generators list, select a code generator.
Depending on the code generator you select, the Advanced button may become enabled.
- (Optional) Click the Advanced button, and provide the following information:
If you are
|
Do this
|
Generating a Java class |
Provide a package name and class name.
The Package field is blank by default, but the Class Name is derived from your project name. If your project name includes any characters that invalidate the class name (such as spaces, dots, and apostrophes), they are removed automatically. |
Generating a .NET C# class |
Provide a namespace and class name.
The Namespace field is blank by default, but the Class Name is derived from your project name. If your project name includes any characters that invalidate the class name (such as spaces, dots, and apostrophes), they are removed automatically. |
- Select an output option:
To
|
Select this check box
|
Paste the generated code into your development environment |
Copy Generated Code to Clipboard. |
Have the designer paste the code into an editor for you |
Open Generated Code in an Editor.
This is the designer's internal text editor or your system's default editor (the one associated with the file type you are generating). To specify which editor to use, from the Window menu, choose Editor Type Preferences. |
- (Optional) Modify the default code formatting options.
The code generators add comments, white space, and error handling template code by default. If you are going to make extensive modifications to the code, it may be simpler if you clear one or both of the code formatting options check boxes.
- Click OK.
Bridge API code is generated and provided per the output option selected.
 |
When the code is generated, any data marked as sensitive is replaced with the commented string: sensitive data removed . For this code to work as it does in the designer, you will need to replace this string with the actual sensitive data. |
|