1 /*
2  *  CVS: $Id: Messages.java,v 1.1 2004/07/25 21:40:56 marcus Exp $
3  * 
4  *  This file is part of zuul.
5  *
6  *  zuul is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation; either version 2 of the License, or
9  *  (at your option) any later version.
10 *
11 *  zuul is distributed in the hope that it will be useful,
12 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 *  GNU General Public License for more details.
15 *
16 *  You should have received a copy of the GNU General Public License
17 *  along with zuul; if not, write to the Free Software
18 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19 * 
20 *  Copyrigth 2004 by marcus
21 * 
22 */
23package org.jzuul.gdk.swt;
24
25import java.util.MissingResourceException;
26import java.util.ResourceBundle;
27
28/**
29 * TODO Document new class
30 * 
31 * Created on Jul 25, 2004
32 * 
33 * @author marcus
34 * @version $Revision: 1.1 $
35 */
36public class Messages {
37
38    private static final String BUNDLE_NAME = "org.jzuul.gdk.swt.gdk";//$NON-NLS-1$
39
40    private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
41
42    private Messages() {
43    }
44
45    public static String getString(String key) {
46        // TODO Auto-generated method stub
47        try {
48            return RESOURCE_BUNDLE.getString(key);
49        } catch (MissingResourceException e) {
50            return '!' + key + '!';
51        }
52    }
53}