Skip Navigation Links | |
Exit Print View | |
Defining Constants and Variables for Oracle Java CAPS Environments Java CAPS Documentation |
Figure 7 Constant or Variable Icon
Environmental constants are name-value pairs that are visible across the Environment. Using a constant allows you to define the value once, and then refer to it from the various Project configurations, rather than having to redefine the value everywhere it is needed. Selecting the New > Constant option from the Environment context menu, which displays the Create Environmental Constant dialog box shown in the following figure.
Figure 8 Create Environmental Constant Dialog
Table 5 Project Constant Options
|
Note - When you create an Environmental constant, you assign a permanent value to it which cannot be overridden.
Constants are automatically added to a Constants object group within the Environment, as shown in the following figure. All constants defined for the specific Environment are listed in the Constants section of the panel, along with their various properties. Additional Environmental Constants can be defined using the lower part of the panel.
Figure 9 Environmental Constants Object Group
Table 6 Environmental Constants Object Group Icons
|
Note - Refer to the Java CAPS 6 Release Notes regarding this feature.