org.eclipse.swt.nebula.widgets.cdatetime
Class Messages
java.lang.Object
org.eclipse.swt.nebula.widgets.cdatetime.Messages
public class Messages
- extends java.lang.Object
Utility class used to access localized string. Can open and maintain an internal map of
several property files at once, thus supporting multiple locales simultaneously.
Method Summary |
static java.lang.String |
getString(java.lang.String key)
Returns the string represented by the given key for the system's default locale. |
static java.lang.String |
getString(java.lang.String key,
java.util.Locale locale)
Returns the string represented by the given key for the system's default locale. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Messages
public Messages()
getString
public static java.lang.String getString(java.lang.String key)
- Returns the string represented by the given key for the system's default locale. If a
property file for the locale or the key cannot be found, the key itself is returned
prefixed and postfixed with exclamation points ("!invalid_key!").
- Parameters:
key
- a key representing a string to look up
- Returns:
- the translated string
- See Also:
getString(String, Locale)
getString
public static java.lang.String getString(java.lang.String key,
java.util.Locale locale)
- Returns the string represented by the given key for the system's default locale. If a
property file for the locale or the key cannot be found, the key itself is returned
prefixed and postfixed with exclamation points ("!invalid_key!").
- Parameters:
key
- a key representing a string to look up
- Returns:
- the translated string
- See Also:
getString(String)