A massive organize imports and formatting of the sources using default Eclipse code...
[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.3 2006-10-21 23:13:54 pombredanne 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
29         public static String getString(String key) {
30                 try {
31                         return bundle.getString(key);
32                 } catch (MissingResourceException e) {
33                         return "!" + key + "!"; //$NON-NLS-1$ //$NON-NLS-2$
34                 }
35         }
36
37         /**
38          * @return Returns the bundle.
39          */
40         public static ResourceBundle getResourceBundle() {
41                 return bundle;
42         }
43 }