A massive organize imports and formatting of the sources using default Eclipse code...
[phpeclipse.git] / net.sourceforge.phpeclipse.externaltools / src / net / sourceforge / phpdt / externaltools / internal / model / ToolMessages.java
index c2b9bf7..d0cfc96 100644 (file)
@@ -1,13 +1,13 @@
 package net.sourceforge.phpdt.externaltools.internal.model;
 
 /**********************************************************************
-Copyright (c) 2002 IBM Corp. and others. All rights reserved.
-This file is made available under the terms of the Common Public License v1.0
-which accompanies this distribution, and is available at
-http://www.eclipse.org/legal/cpl-v10.html
-Contributors:
-**********************************************************************/
+ Copyright (c) 2002 IBM Corp. and others. All rights reserved.
+ This file is made available under the terms of the Common Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/cpl-v10.html
+ �
+ Contributors:
+ **********************************************************************/
 
 import java.text.MessageFormat;
 import java.util.MissingResourceException;
@@ -17,33 +17,36 @@ import java.util.ResourceBundle;
  * Utility class which helps managing messages
  */
 public final class ToolMessages {
-       private static final String RESOURCE_BUNDLE= "net.sourceforge.phpdt.externaltools.internal.model.messages"; //$NON-NLS-1$
-       private static ResourceBundle bundle = ResourceBundle.getBundle(RESOURCE_BUNDLE);
-       
-       private ToolMessages(){
+       private static final String RESOURCE_BUNDLE = "net.sourceforge.phpdt.externaltools.internal.model.messages"; //$NON-NLS-1$
+
+       private static ResourceBundle bundle = ResourceBundle
+                       .getBundle(RESOURCE_BUNDLE);
+
+       private ToolMessages() {
                // prevent instantiation of class
        }
-       
+
        /**
-        * Returns the formatted message for the given key in
-        * the resource bundle. 
-        *
-        * @param key the message name
-        * @param args the message arguments
+        * Returns the formatted message for the given key in the resource bundle.
+        * 
+        * @param key
+        *            the message name
+        * @param args
+        *            the message arguments
         * @return the formatted message
-        */     
+        */
        public static String format(String key, Object[] args) {
                return MessageFormat.format(getString(key), args);
        }
-       
+
        /**
-        * Returns the message with the given key in
-        * the resource bundle. If there isn't any value under
-        * the given key, the key is returned.
-        *
-        * @param key the message name
+        * Returns the message with the given key in the resource bundle. If there
+        * isn't any value under the given key, the key is returned.
+        * 
+        * @param key
+        *            the message name
         * @return the message
-        */     
+        */
        public static String getString(String key) {
                try {
                        return bundle.getString(key);
@@ -51,7 +54,7 @@ public final class ToolMessages {
                        return key;
                }
        }
-       
+
        /**
         * Returns the resource bundle for the plug-in
         */