diff options
Diffstat (limited to 'bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/internal/defaultadaptor/AdaptorMsg.java')
-rw-r--r-- | bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/internal/defaultadaptor/AdaptorMsg.java | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/internal/defaultadaptor/AdaptorMsg.java b/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/internal/defaultadaptor/AdaptorMsg.java new file mode 100644 index 000000000..d60c32e7f --- /dev/null +++ b/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/internal/defaultadaptor/AdaptorMsg.java @@ -0,0 +1,43 @@ +/******************************************************************************* + * Copyright (c) 2003 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are 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: + * IBM Corporation - initial API and implementation + *******************************************************************************/ + +package org.eclipse.osgi.framework.internal.defaultadaptor; + +import org.eclipse.osgi.framework.msg.MessageFormat; + +/** + * This class retrieves strings from a resource bundle + * and returns them, formatting them with MessageFormat + * when required. + * <p> + * It is used by the system classes to provide national + * language support, by looking up messages in the + * <code> + * org.eclipse.osgi.framework.internal.core.ExternalMessages + * </code> + * resource bundle. Note that if this file is not available, + * or an invalid key is looked up, or resource bundle support + * is not available, the key itself will be returned as the + * associated message. This means that the <em>KEY</em> should + * a reasonable human-readable (english) string. + */ + +public class AdaptorMsg +{ + + static public MessageFormat formatter; + + // Attempt to load the message bundle. + static + { + formatter = new MessageFormat("org.eclipse.osgi.framework.internal.defaultadaptor.ExternalMessages"); + } +} |