1 11 package org.eclipse.ant.internal.ui.views.elements; 12 13 14 import java.util.MissingResourceException ; 15 import java.util.ResourceBundle ; 16 17 public class AntViewElementsMessages { 18 19 private static final String BUNDLE_NAME = "org.eclipse.ant.internal.ui.views.elements.AntViewElementsMessages"; 21 private static final ResourceBundle RESOURCE_BUNDLE = 22 ResourceBundle.getBundle(BUNDLE_NAME); 23 24 private AntViewElementsMessages() { 25 } 26 27 public static String getString(String key) { 28 try { 29 return RESOURCE_BUNDLE.getString(key); 30 } catch (MissingResourceException e) { 31 return '!' + key + '!'; 32 } 33 } 34 } 35 | Popular Tags |