KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > directory > ldapstudio > aciitemeditor > valueeditors > Messages


1 package org.apache.directory.ldapstudio.aciitemeditor.valueeditors;
2
3
4 import java.util.MissingResourceException JavaDoc;
5 import java.util.ResourceBundle JavaDoc;
6
7
8 public class Messages
9 {
10     private static final String JavaDoc BUNDLE_NAME = "org.apache.directory.ldapstudio.aciitemeditor.valueeditors.messages"; //$NON-NLS-1$
11

12     private static final ResourceBundle JavaDoc RESOURCE_BUNDLE = ResourceBundle.getBundle( BUNDLE_NAME );
13
14
15     private Messages()
16     {
17     }
18
19
20     public static String JavaDoc getString( String JavaDoc key )
21     {
22         try
23         {
24             return RESOURCE_BUNDLE.getString( key );
25         }
26         catch ( MissingResourceException JavaDoc e )
27         {
28             return '!' + key + '!';
29         }
30     }
31 }
32
Popular Tags