Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: 2785c974fea6dc790d59f683f9d354f7e4d92957 (plain) (tree)
1
2
3
4
5
6
7
                                                                        




                                          
                                                                                                                                 














                                                                            
package org.eclipse.linuxtools.internal.systemtap.ui.dashboardextension;

import java.util.MissingResourceException;
import java.util.ResourceBundle;

public class Localization {
	private static final String BUNDLE_NAME = "org.eclipse.linuxtools.internal.systemtap.ui.dashboardextension.localization";

	private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
			.getBundle(BUNDLE_NAME);

	private Localization() {
	}

	public static String getString(String key) {
		try {
			return RESOURCE_BUNDLE.getString(key);
		} catch (MissingResourceException e) {
			return '!' + key + '!';
		}
	}
}

Back to the top