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