1 11 package org.eclipse.jdt.internal.ui.preferences; 12 13 import java.util.MissingResourceException ; 14 import java.util.ResourceBundle ; 15 16 public class CorrectionMessages { 17 18 private static final String BUNDLE_NAME= "org.eclipse.jdt.internal.ui.text.correction.CorrectionMessages"; 20 private static final ResourceBundle RESOURCE_BUNDLE= ResourceBundle.getBundle(BUNDLE_NAME); 21 22 private CorrectionMessages() { 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 |