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