source: osm/applications/editors/josm/plugins/smed/src/messages/Messages.java@ 29888

Last change on this file since 29888 was 29888, checked in by malcolmh, 11 years ago

clean

File size: 479 bytes
Line 
1package messages;
2
3import java.util.MissingResourceException;
4import java.util.ResourceBundle;
5
6public class Messages {
7 private static final String BUNDLE_NAME = "smed.msg.messages";
8
9 private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
10
11 private Messages() {
12 }
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 }
21}
Note: See TracBrowser for help on using the repository browser.