Class LocalizationServiceHelper
- java.lang.Object
-
- org.eclipse.emfforms.spi.localization.LocalizationServiceHelper
-
public final class LocalizationServiceHelper extends java.lang.ObjectHelper class for retrieving translated strings.- Author:
- Eugen Neufeld
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetString(java.lang.Class<?> clazz, java.lang.String key)Return the String for the provided key.static java.lang.StringgetString(org.osgi.framework.Bundle bundle, java.lang.String key)Return the String for the provided key.
-
-
-
Method Detail
-
getString
public static java.lang.String getString(org.osgi.framework.Bundle bundle, java.lang.String key)Return the String for the provided key.- Parameters:
bundle- The bundle which provides the translated stringskey- The key of the string- Returns:
- The translated key
-
getString
public static java.lang.String getString(java.lang.Class<?> clazz, java.lang.String key)Return the String for the provided key.- Parameters:
clazz- The class which needs a translated stringkey- The key of the string- Returns:
- The translated key
-
-