1 11 package org.eclipse.team.internal.ui; 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.team.internal.ui.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 { 28 return RESOURCE_BUNDLE.getString(key); 29 } catch (MissingResourceException e) { 30 return '!' + key + '!'; 31 } 32 } 33 } 34 | Popular Tags |