Changeset 32767 in osm for applications/editors/josm/plugins/smed/src/messages
- Timestamp:
- 2016-08-04T02:27:43+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/src/messages/Messages.java
r30294 r32767 5 5 6 6 public class Messages { 7 private static final String BUNDLE_NAME = "resources/msg.messages";7 private static final String BUNDLE_NAME = "resources/msg.messages"; 8 8 9 private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);9 private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME); 10 10 11 private Messages() {12 }11 private Messages() { 12 } 13 13 14 public static String getString(String key) {15 try {16 return RESOURCE_BUNDLE.getString(key);17 } catch (MissingResourceException e) {18 return '!' + key + '!';19 }20 }14 public static String getString(String key) { 15 try { 16 return RESOURCE_BUNDLE.getString(key); 17 } catch (MissingResourceException e) { 18 return '!' + key + '!'; 19 } 20 } 21 21 }
Note:
See TracChangeset
for help on using the changeset viewer.
