Mercurial > projects > dwt-addons
diff dwtx/jface/text/contentassist/JFaceTextMessages.d @ 140:26688fec6d23
Following dsss compile errors
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 03:23:46 +0200 |
parents | 7d818bd32d63 |
children | 000f9136b8f7 |
line wrap: on
line diff
--- a/dwtx/jface/text/contentassist/JFaceTextMessages.d Sun Aug 24 02:31:41 2008 +0200 +++ b/dwtx/jface/text/contentassist/JFaceTextMessages.d Sun Aug 24 03:23:46 2008 +0200 @@ -55,9 +55,14 @@ */ class JFaceTextMessages { - private static final String RESOURCE_BUNDLE= JFaceTextMessages.class.getName(); +// private static final String RESOURCE_BUNDLE= JFaceTextMessages.class.getName(); + + private static ResourceBundle fgResourceBundle;//= ResourceBundle.getBundle(RESOURCE_BUNDLE); - private static ResourceBundle fgResourceBundle= ResourceBundle.getBundle(RESOURCE_BUNDLE); + static this() { + fgResourceBundle = ResourceBundle.getBundle( + getImportData!("dwtx.jface.text.contentassist.JFaceTextMessages.properties")); + } private this() { } @@ -72,7 +77,7 @@ try { return fgResourceBundle.getString(key); } catch (MissingResourceException e) { - return "!" + key + "!";//$NON-NLS-2$ //$NON-NLS-1$ + return "!" ~ key ~ "!";//$NON-NLS-2$ //$NON-NLS-1$ } } }