2 * Copyright (c) 2002-2004 Widespace, OU 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://solareclipse.sourceforge.net/legal/cpl-v10.html
9 * Igor Malinin - initial contribution
11 * $Id: EditorMessages.java,v 1.3 2006-10-21 23:13:54 pombredanne Exp $
14 package net.sourceforge.phpeclipse.ui.editor;
16 import java.util.MissingResourceException;
17 import java.util.ResourceBundle;
20 * @author Igor Malinin
22 public class EditorMessages {
23 private static ResourceBundle bundle = ResourceBundle
24 .getBundle("net.sourceforge.phpeclipse.ui.editor.EditorMessages"); //$NON-NLS-1$
26 private EditorMessages() {
29 public static String getString(String key) {
31 return bundle.getString(key);
32 } catch (MissingResourceException e) {
33 return "!" + key + "!"; //$NON-NLS-1$ //$NON-NLS-2$
38 * @return Returns the bundle.
40 public static ResourceBundle getResourceBundle() {