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:
- In the Files window, right-click the properties object node (
)
and choose Open.
The Properties Editor is displayed showing all existing keys and their
values for each locale.
- In the Properties Editor, click the New Property button.
- 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.
- Click OK. The property appears in the Properties Editor with the default
value entered for each existing locale.
- If you want to set a different value for each locale, enter the new values
in each locale's column.
- 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:
- In the Files window, expand the properties object node for the resource
bundle that contains the locale.
- Right-click the node of the locale to which you want to add a property and
choose Add Property.
- Enter a key and a value for the new property and click OK.
- 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:
- In the Files window, right-click the properties object node and choose
Open.
- In the Properties Editor, select the key for the property you want to remove.
- Click the Remove Property button.
- 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:
- In the Files window, right-click the properties object node and choose
Delete.
- 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.
- You can also delete an entire resource bundle and all of the .properties files
contained within it by right-clicking its properties object node (
) and
choosing Delete.
- See Also
- Modifying a Properties File
- Adding and Removing a Locale
- About Resource Bundles
Legal Notices