mirror of
https://github.com/LibreOffice/loeclipse.git
synced 2025-07-31 20:58:45 +00:00
73 lines
2.2 KiB
Java
73 lines
2.2 KiB
Java
/*************************************************************************
|
|
* The Contents of this file are made available subject to the terms of
|
|
* the GNU Lesser General Public License Version 2.1
|
|
*
|
|
* Sun Microsystems Inc., October, 2000
|
|
*
|
|
*
|
|
* GNU Lesser General Public License Version 2.1
|
|
* =============================================
|
|
* Copyright 2000 by Sun Microsystems, Inc.
|
|
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License version 2.1, as published by the Free Software Foundation.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
* MA 02111-1307 USA
|
|
*
|
|
* The Initial Developer of the Original Code is: Sun Microsystems, Inc..
|
|
*
|
|
* Copyright: 2002 by Sun Microsystems, Inc.
|
|
*
|
|
* All Rights Reserved.
|
|
*
|
|
* Contributor(s): Cedric Bosdonnat
|
|
*
|
|
*
|
|
************************************************************************/
|
|
package org.libreoffice.ide.eclipse.java;
|
|
|
|
import java.util.MissingResourceException;
|
|
import java.util.ResourceBundle;
|
|
|
|
/**
|
|
* Messages for the package.
|
|
*/
|
|
public class Messages {
|
|
private static final String BUNDLE_NAME = "org.libreoffice.ide.eclipse.java.messages"; //$NON-NLS-1$
|
|
|
|
private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
|
|
.getBundle(BUNDLE_NAME);
|
|
|
|
/**
|
|
* Default constructor.
|
|
*/
|
|
private Messages() {
|
|
}
|
|
|
|
/**
|
|
* Get the string from it's key.
|
|
*
|
|
* @param pKey the key of the string
|
|
*
|
|
* @return the internationalized string
|
|
*/
|
|
public static String getString(String pKey) {
|
|
String string = '!' + pKey + '!';
|
|
try {
|
|
string = RESOURCE_BUNDLE.getString(pKey);
|
|
} catch (MissingResourceException e) {
|
|
}
|
|
return string;
|
|
}
|
|
}
|