org.eclipse.emfforms.spi.localization
Class LocalizationServiceHelper

java.lang.Object
  extended by org.eclipse.emfforms.spi.localization.LocalizationServiceHelper

public final class LocalizationServiceHelper
extends Object

Helper class for retrieving translated strings.

Author:
Eugen Neufeld

Method Summary
static String getString(org.osgi.framework.Bundle bundle, String key)
          Return the String for the provided key.
static String getString(Class<?> clazz, String key)
          Return the String for the provided key.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getString

public static String getString(org.osgi.framework.Bundle bundle,
                               String key)
Return the String for the provided key.

Parameters:
bundle - The bundle which provides the translated strings
key - The key of the string
Returns:
The translated key

getString

public static String getString(Class<?> clazz,
                               String key)
Return the String for the provided key.

Parameters:
clazz - The class which needs a translated string
key - The key of the string
Returns:
The translated key


Copyright © 2015. All Rights Reserved.