1 /*******************************************************************************
2 * Copyright (c) 2004 Jérôme Nègre.
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.jnegre.org/cpl1_0.html
9 * Jérôme Nègre - initial API and implementation
10 *******************************************************************************/
13 * Created on 27 juil. 2004
15 package net.sourceforge.phpeclipse.news;
17 import java.util.MissingResourceException;
18 import java.util.ResourceBundle;
21 * @author Jérôme Nègre
23 public class Messages {
24 private static final String BUNDLE_NAME = "net.sourceforge.phpeclipse.news.messages";//$NON-NLS-1$
26 private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
27 .getBundle(BUNDLE_NAME);
32 public static String getString(String key) {
34 return RESOURCE_BUNDLE.getString(key);
35 } catch (MissingResourceException e) {
36 return '!' + key + '!';