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