1 /*******************************************************************************
2 * Copyright (c) 2003 Berthold Daum.
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
10 *******************************************************************************/
12 package net.sourceforge.phpeclipse.overlaypages;
14 import java.util.ResourceBundle;
17 public class Messages {
19 private final static String RESOURCE_BUNDLE= "net.sourceforge.phpeclipse.overlayPages.Messages";//$NON-NLS-1$
21 private static ResourceBundle fgResourceBundle = null;
23 private static boolean notRead = true;
27 public static ResourceBundle getResourceBundle() {
31 fgResourceBundle = ResourceBundle.getBundle(RESOURCE_BUNDLE);
37 return fgResourceBundle;
39 public static String getString(String key) {
41 return getResourceBundle().getString(key);
42 } catch (Exception e) {
43 return "!" + key + "!";//$NON-NLS-2$ //$NON-NLS-1$