Customizing Property Resource Bundles
You can override the values of the properties in the resource bundle at the project level, or at the workspace level.
- Procedure
- Right click the
Presentation Resources
folder and click
.
The New File dialog box appears.
- In the
New File
dialog box, name the file with
.propertiesas its extension, and click Finish.In the example, the name of the file is customer_specific and the extension is
.properties. - In the new
.propertiesfile, type the resource entries that you wish to add or override.Sample Resource Entries
In this example, the new resource key is:
validation_Pand so onount
The table Example Resource Keys with Overridden Values lists the existing resource keys with their default values and their new values.
Example Resource Keys with Overridden Values Resource Key Default Value Overridden Value dpane_new_label
Add a new record Add a new report time_24hour
true false form_submit_label
Submit Enter The merged common resources bundle now consists of the old resource keys with the new overridden values along with the new resource keys.
- In the Project Explorer, right click the project, and select
Properties.
OR
Click the Project menu, and select Properties.
The Properties for project name dialog box opens.
- In the left pane, click the
Form Designer
arrow to expand it, and select
.
Note: You can also specify the properties file at the workspace level from this dialog box. To do that, click the Configure Workspace Settings link. When opened this way, the dialog box shows filtered options, and it only shows the Form Designer and Common properties file.
Else, you can go to , and expand the Form Designer to select . Continue the remaining procedure from the next step.
- Select the Enable project specific settings check box.
- Click the
Browse button next to the
Common properties File.
The Pick Resource dialog box opens.
- Select the new properties file, and click OK.
- Click
Apply, and in the ensuing
Rebuild?
dialog box, click
Yes.
In the Properties view > Resources tab, the URI field shows that the common properties resource is now overridden.