|Eclipse Mars 4.5.1 & WB 1.8.0 not finding i18n strings in design view [message #1763489]
||Tue, 16 May 2017 16:33
| Tom Gregory
Registered: May 2017
Doing some enhancements to a 5 year old Java/Swing project at the moment using the above versions. I believe it was originally developed with an older version of Eclipse and WB.|
The project is i18ned with a messages.properties file and a Messages class that uses a ResourceBundle.
An example label is constructed as follows:
new JLabel(Messages.getString(ThisClass.class.getName() + ".Label1")); //$NON-NLS-1$
When the application is run the strings display correctly, but when displayed in WB design view it can't find the string.
I tried creating a new NLS strings source and pointing it at the Messages class but no joy.
Any ideas?! TIA for any assistance.
[Updated on: Mon, 22 May 2017 08:05]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02376 seconds