Author: sflanigan
Date: 2009-04-07 03:27:31 -0400 (Tue, 07 Apr 2009)
New Revision: 14538
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/EditorMessages.java
Log:
JBIDE-3557 Externalise English strings - slightly modified EditorMessages, into the form
understood by "Find Broken Externalized Strings"
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/EditorMessages.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/EditorMessages.java 2009-04-07
07:15:51 UTC (rev 14537)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/EditorMessages.java 2009-04-07
07:27:31 UTC (rev 14538)
@@ -14,21 +14,19 @@
import java.util.ResourceBundle;
public class EditorMessages {
+ private static final String BUNDLE_NAME =
"org.jboss.tools.common.model.ui.attribute.editor.messages"; //$NON-NLS-1$
- private static final String RESOURCE_BUNDLE=
"org.jboss.tools.common.model.ui.attribute.editor.messages";//$NON-NLS-1$
+ private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
+ .getBundle(BUNDLE_NAME);
- private static ResourceBundle bundle= ResourceBundle.getBundle(RESOURCE_BUNDLE);
-
private EditorMessages() {
}
public static String getString(String key) {
try {
- return bundle.getString(key);
+ return RESOURCE_BUNDLE.getString(key);
} catch (MissingResourceException e) {
- return key;
+ return '!' + key + '!';
}
}
}
-
-
Show replies by date