intial source from http://www.sf.net/projects/wdte
[phpeclipse.git] / net.sourceforge.phpeclipse.ui / src / net / sourceforge / phpeclipse / ui / editor / EditorMessages.java
1 /*
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
7  * 
8  * Contributors:
9  *     Igor Malinin - initial contribution
10  * 
11  * $Id: EditorMessages.java,v 1.1 2004-09-02 18:26:30 jsurfer Exp $
12  */
13
14 package net.sourceforge.phpeclipse.ui.editor;
15
16 import java.util.MissingResourceException;
17 import java.util.ResourceBundle;
18
19 /**
20  * @author Igor Malinin
21  */
22 public class EditorMessages {
23         private static ResourceBundle bundle = ResourceBundle
24                 .getBundle("net.sourceforge.phpeclipse.ui.editor.EditorMessages"); //$NON-NLS-1$
25
26         private EditorMessages() {}
27
28         public static String getString( String key ) {
29                 try {
30                         return bundle.getString( key );
31                 } catch ( MissingResourceException e ) {
32                         return "!" + key + "!"; //$NON-NLS-1$ //$NON-NLS-2$
33                 }
34         }
35 }