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
  1. Right click the Presentation Resources folder and click New > File.

    The New File dialog box appears.

  2. In the New File dialog box, name the file with .properties as its extension, and click Finish.

    In the example, the name of the file is customer_specific and the extension is .properties.

  3. In the new .properties file, 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.

  4. 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.

  5. In the left pane, click the Form Designer arrow to expand it, and select resources > Common properties.
    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 Window > Preferences, and expand the Form Designer to select resources > Common properties. Continue the remaining procedure from the next step.

  6. Select the Enable project specific settings check box.
  7. Click the Browse button next to the Common properties File.

    The Pick Resource dialog box opens.

  8. Select the new properties file, and click OK.
  9. 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.