01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.internal.ui.macbundler;
11:
12: import java.util.*;
13: import java.util.ResourceBundle;
14:
15: public class Util {
16:
17: private static final String RESOURCE_BUNDLE = "org.eclipse.jdt.internal.ui.macbundler.BundleMessages"; //$NON-NLS-1$
18: private static ResourceBundle fgResourceBundle = ResourceBundle
19: .getBundle(RESOURCE_BUNDLE);
20:
21: static String getString(String key) {
22: try {
23: return fgResourceBundle.getString(key);
24: } catch (MissingResourceException e) {
25: return "!" + key + "!";//$NON-NLS-2$ //$NON-NLS-1$
26: }
27: }
28: }
|