Mercurial > projects > dwt-addons
diff dwtx/jface/text/hyperlink/HyperlinkMessages.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/hyperlink/HyperlinkMessages.d Sun Aug 24 02:31:41 2008 +0200 +++ b/dwtx/jface/text/hyperlink/HyperlinkMessages.d Sun Aug 24 03:23:46 2008 +0200 @@ -34,20 +34,25 @@ /** * Helper class to get NLSed messages. - * + * * @since 3.4 */ class HyperlinkMessages { - private static final String BUNDLE_NAME= HyperlinkMessages.class.getName(); - - private static final ResourceBundle RESOURCE_BUNDLE= ResourceBundle.getBundle(BUNDLE_NAME); - +// private static final String BUNDLE_NAME= HyperlinkMessages.class.getName(); + + private static final ResourceBundle RESOURCE_BUNDLE;//= ResourceBundle.getBundle(BUNDLE_NAME); + + static this() { + RESOURCE_BUNDLE = ResourceBundle.getBundle( + getImportData!("dwtx.jface.text.HyperlinkMessages.properties")); + } + private this() { } /** * Gets a string from the resource bundle. - * + * * @param key the string used to get the bundle value, must not be * <code>null</code> * @return the string from the resource bundle @@ -56,7 +61,7 @@ try { return RESOURCE_BUNDLE.getString(key); } catch (MissingResourceException e) { - return '!' + key + '!'; + return '!' ~ key ~ '!'; } } }