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.1 2004-09-02 18:26:30 jsurfer 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() {}
28 public static String getString( String key ) {
30 return bundle.getString( key );
31 } catch ( MissingResourceException e ) {
32 return "!" + key + "!"; //$NON-NLS-1$ //$NON-NLS-2$