1 20 package org.apache.directory.ldapstudio.aciitemeditor.dialogs; 21 22 23 import java.util.MissingResourceException ; 24 import java.util.ResourceBundle ; 25 26 27 public class Messages 28 { 29 private static final String BUNDLE_NAME = "org.apache.directory.ldapstudio.aciitemeditor.dialogs.messages"; 31 private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle( BUNDLE_NAME ); 32 33 34 private Messages() 35 { 36 } 37 38 39 public static String getString( String key ) 40 { 41 try 42 { 43 return RESOURCE_BUNDLE.getString( key ); 44 } 45 catch ( MissingResourceException e ) 46 { 47 return '!' + key + '!'; 48 } 49 } 50 } 51 | Popular Tags |