| /******************************************************************************* |
| * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Doug Satchwell (Chase Technology Ltd) - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.wst.xsl.jaxp.debug.invoker; |
| |
| import java.util.MissingResourceException; |
| import java.util.ResourceBundle; |
| |
| /** |
| * Messages for the configuration. |
| * |
| * @author Doug Satchwell |
| */ |
| class Messages |
| { |
| private static final String BUNDLE_NAME = "org.eclipse.wst.xsl.jaxp.debug.invoker.messages"; //$NON-NLS-1$ |
| |
| private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME); |
| |
| private Messages() |
| { |
| } |
| |
| /** |
| * Get a message for the given key. |
| * |
| * @param key the message key |
| * @return the message |
| */ |
| public static String getString(String key) |
| { |
| try |
| { |
| return RESOURCE_BUNDLE.getString(key); |
| } |
| catch (MissingResourceException e) |
| { |
| return '!' + key + '!'; |
| } |
| } |
| } |