org.eclipse.mtj.api.extension
Interface LocalizationProvider


public interface LocalizationProvider

The LocalizationProvider can be used to give localized Strings and Messages. Messages can also use the standard Java and Eclipse localization methods.


Method Summary
 java.lang.String getString(java.lang.String key)
          Returns the string from the plugin's resource bundle, or 'key' if not found.
 java.lang.String getString(java.lang.String key, java.lang.Object[] substitutions)
          Returns the string from the plugin's resource bundle, or 'key' if not found.
 java.lang.String getUiString(java.lang.String key)
          Returns the UiString from the plugin's resource bundle, or 'key' if not found.
 java.lang.String getUiString(java.lang.String key, java.lang.Object[] substitutions)
          Returns the UiString from the plugin's resource bundle, or 'key' if not found.
 

Method Detail

getString

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


getString

java.lang.String getString(java.lang.String key,
                           java.lang.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

getUiString

java.lang.String getUiString(java.lang.String key)
Returns the UiString from the plugin's resource bundle, or 'key' if not found.


getUiString

java.lang.String getUiString(java.lang.String key,
                             java.lang.Object[] substitutions)
Returns the UiString from the plugin's resource bundle, or 'key' if not found. Substitutions will be made if supplied.

Parameters:
key -
substitutions -
Returns:
String