Mercurial > projects > dwt-addons
diff dwtx/jface/text/RegExMessages.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 | 25f1f92fa3df |
line wrap: on
line diff
--- a/dwtx/jface/text/RegExMessages.d Sun Aug 24 02:31:41 2008 +0200 +++ b/dwtx/jface/text/RegExMessages.d Sun Aug 24 03:23:46 2008 +0200 @@ -157,20 +157,24 @@ import dwt.dwthelper.utils; -import java.util.MissingResourceException; -import java.util.ResourceBundle; +import dwt.dwthelper.MissingResourceException; +import dwt.dwthelper.ResourceBundle; /** * RegEx messages. Helper class to get NLSed messages. - * + * * @since 3.4 */ final class RegExMessages { - - private static final String RESOURCE_BUNDLE= RegExMessages.class.getName(); - private static ResourceBundle fgResourceBundle= ResourceBundle.getBundle(RESOURCE_BUNDLE); + + //private static const String RESOURCE_BUNDLE= RegExMessages.class.getName(); + private static ResourceBundle fgResourceBundle;//= ResourceBundle.getBundle(RESOURCE_BUNDLE); + static this() { + fgResourceBundle = ResourceBundle.getBundle( + getImportData!("dwtx.jface.text.RegExMessages.properties")); + } private this() { // Do not instantiate @@ -180,7 +184,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$ } }