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