1 /*
2 * Copyright 1999-2006 Faculty of Mathematics, Physics and Informatics, Comenius
3 * University, Bratislava. This file is protected by the Mozilla Public License
4 * version 1.1 (the License); you may not use this file except in compliance
5 * with the License. You may obtain a copy of the License at
6 * http://euromath2.sourceforge.net/license.html Unless required by applicable
7 * law or agreed to in writing, software distributed under the License is
8 * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
9 * KIND, either express or implied. See the License for the specific language
10 * governing permissions and limitations under the License.
11 */
12 package sk.uniba.euromath.plugin.views.outline.actions.lang;
13
14 import java.util.MissingResourceException;
15 import java.util.ResourceBundle;
16
17 public class Messages {
18 private static final String BUNDLE_NAME = "sk.uniba.euromath.plugin.views.outline.actions.lang.messages"; //$NON-NLS-1$
19
20 private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
21 .getBundle(BUNDLE_NAME);
22
23 private Messages() {
24 }
25
26 public static String getString(String key) {
27 try {
28 return RESOURCE_BUNDLE.getString(key);
29 } catch (MissingResourceException e) {
30 return '!' + key + '!';
31 }
32 }
33 }