1 11 package org.eclipse.ui.internal.console; 12 13 import java.util.MissingResourceException ; 14 import java.util.ResourceBundle ; 15 16 public class ConsoleResourceBundleMessages { 17 private static final String BUNDLE_NAME = "org.eclipse.ui.internal.console.ConsoleResourceBundleMessages"; 19 private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME); 20 21 private ConsoleResourceBundleMessages() { 22 } 23 24 public static String getString(String key) { 25 try { 26 return RESOURCE_BUNDLE.getString(key); 27 } catch (MissingResourceException e) { 28 return '!' + key + '!'; 29 } 30 } 31 32 public static ResourceBundle getBundle() { 33 return RESOURCE_BUNDLE; 34 } 35 } 36 | Popular Tags |