1 11 package org.eclipse.test.internal.performance.data; 12 13 import java.util.MissingResourceException ; 14 import java.util.ResourceBundle ; 15 16 17 20 public class DimensionMessages { 21 22 private static final String BUNDLE_NAME= "org.eclipse.test.internal.performance.data.DimensionMessages"; 24 private static final ResourceBundle RESOURCE_BUNDLE= ResourceBundle.getBundle(BUNDLE_NAME); 25 26 private DimensionMessages() { 27 } 29 30 public static String getString(int id) { 31 return getString("Dimension." + id); } 33 34 public static String getString(String key) { 35 try { 36 return RESOURCE_BUNDLE.getString(key); 37 } catch (MissingResourceException e) { 38 return '!' + key + '!'; 39 } 40 } 41 } 42 | Popular Tags |