1 11 package org.eclipse.ui.internal.ide.misc; 12 13 import java.util.MissingResourceException ; 14 import java.util.ResourceBundle ; 15 16 19 public class WorkInProgressMessages { 20 21 private static final String BUNDLE_NAME = "org.eclipse.ui.internal.ide.misc.WorkInProgress"; 23 private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME); 24 25 29 private WorkInProgressMessages() { 30 31 } 33 38 public static String getString(String key) { 39 try { 41 return RESOURCE_BUNDLE.getString(key); 42 } 43 catch (MissingResourceException e) { 44 return '!' + key + '!'; 45 } 46 } 47 } 48 | Popular Tags |