Using the editor
This section will give you an overview on using the resourceBundle editor.

You will learn about the following:

Opening an editor

To open a resourceBundle editor, simply double-click on a .properties file in the Package Explorer. If for some reason, the .properties file doesn't open in JInto, but in another editor, close that editor again, and then right-click the .properties file you want to open, and then select "Open with" and "Java ResourceBundle Editor".
The editor automatically collects the data from all .properties files which are connected to the selected file (same folder; same prefix; same extension; only different language, county or variant).

The editor contains a table with the content of the files. There is an error/warning column for displaying the errors and warnings found in this resourceBundle. The next column will be the keys column. This column displays all keys found in the .properties files. Finally there will be a column for every .properties file. It contains the values for the key, for the given language. The editor also shows the name of the resourceBundle and two buttons, which can be used to add remove keys (and therefore rows in the table).

When a resourceBundle editor is open and selected, there will be a special jinto toolbar.

This button will assign the same width to every column, so all columns fit into the editor window. After this action, there will be no horizontal scrollbar in the table. Values that don't fit into the columns are clipped.
Calculates the optimal width for every column. The optimal width of the column is the width required so that the content of all cells in the column can be displayed without being clipped.
With this button you can add an additional language to the resourceBundle. It opens a wizard with all relevant information already filled in - you must only select language, and optionally country and variant.

To make working with the resourceBundle editor easier, the status line of eclipse shows additional information like row count and the key of the currently selected row.
If you press F2, an editor dialog which contains the text of the selected cell will be opened for making editing easier. With this editor you more easily edit long text than with the normal cell editor.

Adding and removing rows

For adding and removing rows from the resourceBundle, the editor has two buttons in the upper-right corner. With the + Button you add a row below the currently selected row, the - button removes the currently selected row from the resourceBundle.
You can also use the + and the - keys on you keyboard for doing these actions.

Add a new row to the resourceBundle.
Remove the selected row from the resourceBundle.
If you want to search for a string in the resourceBundle, you can do this by using the Find action (Edit->Find/Replace... or Ctrl+F). In this dialog you can enter text which will be searched and selected in the editor. You can search forward or backward and you have the option of doing a case sensitive search. If you want the search to continue at the beginning of the file when the search hits the end of the file, you can select wrap search.

Using the Edit Dialog

If you want a extra (multi-line) text field to enter a long message, press Ctrl+F2 and a edit dialog opens. The dialog shows the content of the selected cell in a multi-line text field. To apply the changes click on the OK button or press Ctrl+Enter.

Error/warning annotations

The automatic background search of the editor runs every time the editor has been saved. It shows the errors found and warnings for the resourceBundle in the first column of the table.
There can be only one error but different kinds of warnings. An error will be shown if you enter a duplicate key into the resourceBundle.
Please see the following table of warnings:

Empty keys and values If a key or a value is empty, a warning will be shown in the first column of the table.
Possible redundancy If all values of a key are equal to the values of another key, this is a possible redundancy and a warning will be shown. You can delete one key and use only the other key in the application.