directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r721189 - /directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIPlugin.java
Date Thu, 27 Nov 2008 14:35:51 GMT
Author: felixk
Date: Thu Nov 27 06:35:50 2008
New Revision: 721189

URL: http://svn.apache.org/viewvc?rev=721189&view=rev
Log:
Externalize Strings

Modified:
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIPlugin.java

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIPlugin.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIPlugin.java?rev=721189&r1=721188&r2=721189&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIPlugin.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIPlugin.java
Thu Nov 27 06:35:50 2008
@@ -45,7 +45,7 @@
     /** The plugin properties */
     private PropertyResourceBundle properties;
 
-    
+
     /**
      * The constructor.
      */
@@ -83,19 +83,18 @@
     }
 
 
-//    public static String getResourceString( String key )
-//    {
-//        ResourceBundle bundle = getDefault().getResourceBundle();
-//        try
-//        {
-//            return ( bundle != null ) ? bundle.getString( key ) : key;
-//        }
-//        catch ( MissingResourceException e )
-//        {
-//            return key;
-//        }
-//    }
-
+    //    public static String getResourceString( String key )
+    //    {
+    //        ResourceBundle bundle = getDefault().getResourceBundle();
+    //        try
+    //        {
+    //            return ( bundle != null ) ? bundle.getString( key ) : key;
+    //        }
+    //        catch ( MissingResourceException e )
+    //        {
+    //            return key;
+    //        }
+    //    }
 
     /**
      * Use this method to get SWT images. Use the IMG_ constants from
@@ -164,15 +163,14 @@
             try
             {
                 properties = new PropertyResourceBundle( FileLocator.openStream( this.getBundle(),
new Path(
-                    "plugin.properties" ), false ) );
+                    "plugin.properties" ), false ) ); //$NON-NLS-1$
             }
             catch ( IOException e )
             {
                 // We can't use the PLUGIN_ID constant since loading the plugin.properties
file has failed,
                 // So we're using a default plugin id.
-                getLog().log(
-                    new Status( Status.ERROR, "org.apache.directory.studio.ldapbrowser.ui",
Status.OK,
-                        "Unable to get the plugin properties.", e ) );
+                getLog().log( new Status( Status.ERROR, "org.apache.directory.studio.ldapbrowser.ui",
Status.OK, //$NON-NLS-1$
+                    Messages.getString( "BrowserUIPlugin.UnableGetPluginProperties" ), e
) ); //$NON-NLS-1$
             }
         }
 



Mime
View raw message