blob: 152cd5cca0b9fa7bd3fd772b876e7049fe1e9d06 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
/*******************************************************************************
* Copyright (c) 2004 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.internal.resolver;
import org.eclipse.osgi.framework.msg.MessageFormat;
import org.eclipse.osgi.framework.util.FrameworkMessageFormat;
/**
* 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.internal.resolver.StateMessages
* </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 StateMsg {
static public MessageFormat formatter;
// Attempt to load the message bundle.
static {
formatter = FrameworkMessageFormat.getMessageFormat("org.eclipse.osgi.internal.resolver.StateMessages"); //$NON-NLS-1$
}
}
|