01 /*
02 * Created on 2005/03/04
03 * Author aki@www.xucker.jpn.org
04 * License Apache2.0 or Common Public License
05 */
06 package org.jpn.xucker.rcp.optipngwrapper;
07
08 /**
09 *
10 *
11 */
12
13
14
15
16 import java.util.MissingResourceException;
17 import java.util.ResourceBundle;
18
19 public class Messages {
20
21 private static final String BUNDLE_NAME = "org.jpn.xucker.rcp.optipngwrapper.optipngwrapperResources"; //$NON-NLS-1$
22
23 private static final ResourceBundle RESOURCE_BUNDLE =
24 ResourceBundle.getBundle(BUNDLE_NAME);
25
26 private Messages() {
27 }
28
29 public static String getString(String key) {
30 try {
31 return RESOURCE_BUNDLE.getString(key);
32 } catch (MissingResourceException e) {
33 return '!' + key + '!';
34 }
35 }
36 }
|