1/**
2 * Copyright (c) 2006 IBM Corporation and others.
3 * All rights reserved.   This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
7 */
8package org.eclipse.releng.util.bugzilla;
9
10
11import java.util.MissingResourceException;
12import java.util.ResourceBundle;
13
14
15public class Messages
16{
17  private static final String BUNDLE_NAME = "org.eclipse.releng.util.bugzilla.messages"; //$NON-NLS-1$
18
19  private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
20
21  private Messages()
22  {
23  }
24
25  public static String getString(String key)
26  {
27    try
28    {
29      return RESOURCE_BUNDLE.getString(key);
30    }
31    catch (MissingResourceException e)
32    {
33      return '!' + key + '!';
34    }
35  }
36}
37