Adding and Removing a Property

See Also 

The IDE's Properties Editor enables you to manage the properties in all of the locales in your resource bundle. You can also add a property to or remove a property from only one locale.

To add a new property to all locales in a resource bundle:

  1. In the Files window, right-click the properties object node (Properties object node icon) and choose Open.

    The Properties Editor is displayed showing all existing keys and their values for each locale.

  2. In the Properties Editor, click the New Property button.
  3. Enter a key and its default value for the new property. You can also add a comment along with the key and value. The comment is displayed when you click the value for that locale's key.
  4. Click OK. The property appears in the Properties Editor with the default value entered for each existing locale.
  5. If you want to set a different value for each locale, enter the new values in each locale's column.
  6. Choose File > Save to save the file.

    The IDE adds the property's key and all localized values to each of the locales.

To add a new property to a specific locale:

  1. In the Files window, expand the properties object node for the resource bundle that contains the locale.
  2. Right-click the node of the locale to which you want to add a property and choose Add Property.
  3. Enter a key and a value for the new property and click OK.
  4. Choose File > Save to save the file.

    The IDE adds the property's key and localized value to the specified locale.

To remove a property from all locales in a resource bundle:

  1. In the Files window, right-click the properties object node and choose Open.
  2. In the Properties Editor, select the key for the property you want to remove.
  3. Click the Remove Property button.
  4. Click Yes in the verification dialog box.

    The IDE removes the property's key and all localized values from all locales.

To remove a property from a specific locale:

  1. In the Files window, right-click the properties object node and choose Delete.
  2. Click Yes in the verification dialog box

    The IDE removes the property's key and localized value from the specified locale. The property is not deleted from other locales.

See Also
Modifying a Properties File
Adding and Removing a Locale
About Resource Bundles

Legal Notices