Overview | Package | Class | Use | Tree | Deprecated | Index
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.emfforms.spi.localization
Class LocalizationServiceHelper

    java.lang.Object
      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

Overview | Package | Class | Use | Tree | Deprecated | Index
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2015. All Rights Reserved.