File: /Users/shatabdi/Education/GitHub/se450_project/src/model/others/Messages.java

1     package model.others;
2     
3     import java.util.MissingResourceException;
4     import java.util.ResourceBundle;
5     
6     public class Messages {
7     	private static final String BUNDLE_NAME = "model.others.messages"; //$NON-NLS-1$
8     
9     	private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
10     
11     	public static String getString(String key) {
12     		try {
13     			return RESOURCE_BUNDLE.getString(key);
14     		} catch (MissingResourceException e) {
15     			return '!' + key + '!';
16     		}
17     	}
18     
19     	private Messages() {
20     	}
21     }
22