1 package com.explosion.expf;
2
3
4 /*
5 * =============================================================================
6 *
7 * Copyright 2004 Stephen Cowx
8 *
9 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
10 * use this file except in compliance with the License. You may obtain a copy of
11 * the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
17 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
18 * License for the specific language governing permissions and limitations under
19 * the License.
20 *
21 * =============================================================================
22 */
23
24 import java.util.MissingResourceException;
25 import java.util.ResourceBundle;
26
27 public class Messages
28 {
29
30 private static final String BUNDLE_NAME = "com.explosion.expf.explosion"; //$NON-NLS-1$
31
32 private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
33
34 private Messages()
35 {}
36
37 public static String getString(String key)
38 {
39 try
40 {
41 return RESOURCE_BUNDLE.getString(key);
42 } catch (MissingResourceException e)
43 {
44 return '!' + key + '!';
45 }
46 }
47 }