X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpdt/externaltools/internal/model/ExternalToolsModelMessages.java b/net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpdt/externaltools/internal/model/ExternalToolsModelMessages.java index 7e56a8b..e234173 100644 --- a/net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpdt/externaltools/internal/model/ExternalToolsModelMessages.java +++ b/net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpdt/externaltools/internal/model/ExternalToolsModelMessages.java @@ -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 ExternalToolsModelMessages { - private static final String RESOURCE_BUNDLE= "net.sourceforge.phpdt.externaltools.internal.model.ExternalToolsModelMessages"; //$NON-NLS-1$ - private static ResourceBundle bundle = ResourceBundle.getBundle(RESOURCE_BUNDLE); - - private ExternalToolsModelMessages(){ + private static final String RESOURCE_BUNDLE = "net.sourceforge.phpdt.externaltools.internal.model.ExternalToolsModelMessages"; //$NON-NLS-1$ + + private static ResourceBundle bundle = ResourceBundle + .getBundle(RESOURCE_BUNDLE); + + private ExternalToolsModelMessages() { // 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 ExternalToolsModelMessages { return key; } } - + /** * Returns the resource bundle for the plug-in */