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