Changeset 33030 in osm for applications/editors/josm/plugins/seachartedit/src/messages
- Timestamp:
- 2016-10-09T04:25:33+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachartedit/src/messages/Messages.java
r30895 r33030 13 13 import java.util.ResourceBundle; 14 14 15 public class Messages { 16 private static final String BUNDLE_NAME = "resources/msg.messages";15 public final class Messages { 16 private static final String BUNDLE_NAME = "resources/msg.messages"; 17 17 18 private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);18 private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME); 19 19 20 private Messages() {21 }20 private Messages() { 21 } 22 22 23 public static String getString(String key) {24 try {25 return RESOURCE_BUNDLE.getString(key);26 } catch (MissingResourceException e) {27 return '!' + key + '!';28 }29 }23 public static String getString(String key) { 24 try { 25 return RESOURCE_BUNDLE.getString(key); 26 } catch (MissingResourceException e) { 27 return '!' + key + '!'; 28 } 29 } 30 30 }
Note:
See TracChangeset
for help on using the changeset viewer.
