1 package org.apache.directory.ldapstudio.aciitemeditor.valueeditors; 2 3 4 import java.util.MissingResourceException ; 5 import java.util.ResourceBundle ; 6 7 8 public class Messages 9 { 10 private static final String BUNDLE_NAME = "org.apache.directory.ldapstudio.aciitemeditor.valueeditors.messages"; 12 private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle( BUNDLE_NAME ); 13 14 15 private Messages() 16 { 17 } 18 19 20 public static String getString( String key ) 21 { 22 try 23 { 24 return RESOURCE_BUNDLE.getString( key ); 25 } 26 catch ( MissingResourceException e ) 27 { 28 return '!' + key + '!'; 29 } 30 } 31 } 32 | Popular Tags |