Mobile Tools for Java
Release 1.0

org.eclipse.mtj.core
Class MTJCoreStrings

java.lang.Object
  extended by org.eclipse.mtj.core.MTJCoreStrings

public class MTJCoreStrings
extends Object

This class provides the means to internationalize strings that are located in the org.eclipse.mtj.core package. It sets up a ResourceBundle based on the file MTJPluginResources.properties in the org.eclipse.mtj.core package, and allows retrieval of keyed strings from that bundle.


Constructor Summary
MTJCoreStrings()
           
 
Method Summary
static String getBundleString(String key)
          Returns the string from the plugin's resource bundle, or null if not found.
static String getString(String key)
          Returns the string from the plugin's resource bundle, or 'key' if not found.
static String getString(String key, Object[] substitutions)
          Returns the string from the plugin's resource bundle, or 'key' if not found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MTJCoreStrings

public MTJCoreStrings()
Method Detail

getString

public static String getString(String key)
Returns the string from the plugin's resource bundle, or 'key' if not found.


getString

public static String getString(String key,
                               Object[] substitutions)
Returns the string from the plugin's resource bundle, or 'key' if not found. Substitutions will be made if supplied.

Parameters:
key -
substitutions -
Returns:
String

getBundleString

public static String getBundleString(String key)
Returns the string from the plugin's resource bundle, or null if not found.


Mobile Tools for Java
Release 1.0