Code
This tab is only enabled if the Use External Class field is unchecked. This tab allows you to add implementation code to the appropriate methods of the JavaProcessStarter class. You can choose to display the full Java class or display a particular method by selecting the appropriate value in the Show field at the top right of the Code tab.
The code tab has the following fields/buttons.
Field/Button |
Description |
Source Code |
The source code of the JavaProcessStarter implementation class. |
Show |
Displays the selected method or the entire class. The following are valid options to select:
|
Compile Button |
Compiles the current source code. When the code in the activity needs compilation (for example, the code changes), a yellow warning icon appears on this button. The code either compile successfully or the View Errors dialog appears to display any errors in the code. After compilation, the source and compiled java code are placed into the |
View Errors Button |
Displays the errors encountered when the code was compiled. |
Edit Class Button |
Displays the source code in the editor specified with the TIBCO Designer preferences. If no editor is specified, a simple popup editing window is used. Use Edit>Preferences>Other to specify the Java editor you want to use to edit source code. Note: On MS Windows platforms, a temporary file is created to hold the Java code when you edit your code with this button. This file is located in either
C:\temp or C:\tmp or your working directory. If your working directory contains a space (for example C:\Documents and Settings\ ...), there may be problems opening the temporary file. Make certain either the C:\temp or C:\tmp directory exists to avoid this issue. |