Community
Participate
Working Groups
You can currently hover over or ctrl click on an existing NLS string in the java editor and have it take you to the definition of that string. It would be useful to provide content assist when adding them (yes, I am addicted to ctrl+space). Currently to get an NLS key you would have to look up the key in the property file and copy it to the java file (or use the externalize wizard for new keys). eg. given the following snippet (assuming content assist is invoked with the cursor at |) Messages.getString("key|") only keys starting with "key" would be proposed. NLS keys should probably only be suggested when the cursor is inside a string value (""). The externalised version (using the current locale) of the key should be displayed as the info of the assist. Poposals should be sorted alphabetically.
Note that this now works when using Eclipse's string externalization mechanism.