org.eclipse.core.runtime.internal.adaptor
Class BundleLocalizationImpl

java.lang.Object
  extended by org.eclipse.core.runtime.internal.adaptor.BundleLocalizationImpl
All Implemented Interfaces:
BundleLocalization

public class BundleLocalizationImpl
extends java.lang.Object
implements BundleLocalization

The implementation of the service that gets ResourceBundle objects from a given bundle with a given locale.

Internal class.


Constructor Summary
BundleLocalizationImpl()
           
 
Method Summary
 java.util.ResourceBundle getLocalization(Bundle bundle, java.lang.String locale)
          The getLocalization method gets a ResourceBundle object for the given locale and bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleLocalizationImpl

public BundleLocalizationImpl()
Method Detail

getLocalization

public java.util.ResourceBundle getLocalization(Bundle bundle,
                                                java.lang.String locale)
The getLocalization method gets a ResourceBundle object for the given locale and bundle.

Specified by:
getLocalization in interface BundleLocalization
Parameters:
bundle - the bundle to get localization for
locale - the name of the locale to get, or null if the default locale is to be used
Returns:
A ResourceBundle object for the given bundle and locale. If null is passed for the locale parameter, the default locale is used.


Copyright © 2007-2012 FuseSource, Corp.. All Rights Reserved.