JInto is integrated in the Java
editor, too. It provides Content Assist , Quick
Fix/Quick Assist and Fast Navigation for the code fragments
linking to ResourceBundle's.
If you want to use all this helpful features in JInto, you have to
configure your project in the JInto
Property Page.
Content Assist
The JInto content assist will make you're live much easier.
Everytime you need a value from the ResourceBundle, JInto will show
you a list of possible completions.
Let's give an example:
You have configured getString(String key) of class
de.guhsoft.jinto.ui.Messages as an accessor method for
ResourceBundle de.guhsoft.jinto.core.messages . You're
used the normal Java content assist to create the following code
Messages.getString(key) . Now you type Ctrl + Space and JInto
will give you a list of possible key's from the
de.guhsoft.jinto.core.messages ResourceBundle.
Please see the pictures below:
Use content assist for
Messages.getString(key) |
 |
Press Ctrl + Space |
 |
Type the beginning of the key you want to use. |
 |
Press Enter and the selected key will be
completed. |
 |
Quick Fix/Quick Assist
The Qick Fix/Quick Assist feature helps you to add new or non
existing keys and it's messages fast and clean into the
ResourceBundle without switching into the ResourceBundle editor.
If there is a key (as string with quotes) which is not existing in
the linked ResourceBundle, you can use the quick fix feature to add
messages for that key into the ResourceBundle. Left click on the
light bulb or invoking Ctrl+1 (Edit > Quick Fix) brings up
the Add key 'X' to ResourceBundle correction proposal. If you
select this correction proposal, a editor opens where you can enter
the messages for this key and save them into the ResourceBundle by
pressing OK.
Click on the light bulb or press Ctrl+1 (Edit >
Quick Fix) to show the correction proposals. |
 |
Select the Add key 'X' to ResourceBundle proposal
|
 |
Then a editor opens where you can enter the messages for
the key. After entering the message for the selected language, you
can switch to the next language by clicking into the table or
invoking Ctrl+Tab. If the last language is selected, Ctrl+Tab
moves the focus to the OK button. |
 |
If there is a message for a displayed language, a
check-icon is shown before the language.
After pressing OK, the messages are saved under the given
key. |
 |
If you want to add a new key into the ResourceBundle without
switching into the ResourceBundle editor, you can use the quick
assist. The JInto quick assist is invoked on a selection of the
right argument in a accessor method invocation and use the same
shortcut as quick fixes (Ctrl+1).
For example if you type a method invocation by using code assist:
Press Ctrl+1 to show the proposals. Select Add
new key to ResourceBundle to invoke the "Add new Key"-Dialog. |
 |
Press Ctrl+1 to show the proposals. Select Add
new key to ResourceBundle to invoke the "Add new Key"-Dialog. |
 |
Fast Navigation
 |
If you want to get from the Java editor into the
ResourceBundle editor with one click, you can use the JInto fast
navigation.
You only have to hover a key and press Ctrl. If the key is
found in the linked ResourceBundle, a hyperlink is shown. When you
click on that hyperlink, it open's the ResourceBundle editor and
select the clicked key. |
|