/** * The getLocalization method gets a ResourceBundle object for the given * locale and bundle. * * @return A <code>ResourceBundle</code> object for the given bundle and locale. * If null is passed for the locale parameter, the default locale is used. */ public ResourceBundle getLocalization(Bundle bundle, String locale) { Module m = ((EquinoxBundle) bundle).getModule(); ModuleRevision r = m.getCurrentRevision(); Generation g = (Generation) r.getRevisionInfo(); return g.getResourceBundle(locale); } }
/** * The getLocalization method gets a ResourceBundle object for the given * locale and bundle. * * @return A <code>ResourceBundle</code> object for the given bundle and locale. * If null is passed for the locale parameter, the default locale is used. */ public ResourceBundle getLocalization(Bundle bundle, String locale) { Module m = ((EquinoxBundle) bundle).getModule(); ModuleRevision r = m.getCurrentRevision(); Generation g = (Generation) r.getRevisionInfo(); return g.getResourceBundle(locale); } }
/** * The getLocalization method gets a ResourceBundle object for the given * locale and bundle. * * @return A <code>ResourceBundle</code> object for the given bundle and locale. * If null is passed for the locale parameter, the default locale is used. */ public ResourceBundle getLocalization(Bundle bundle, String locale) { Module m = ((EquinoxBundle) bundle).getModule(); ModuleRevision r = m.getCurrentRevision(); Generation g = (Generation) r.getRevisionInfo(); return g.getResourceBundle(locale); } }
/** * The getLocalization method gets a ResourceBundle object for the given * locale and bundle. * * @return A <code>ResourceBundle</code> object for the given bundle and locale. * If null is passed for the locale parameter, the default locale is used. */ public ResourceBundle getLocalization(Bundle bundle, String locale) { Module m = ((EquinoxBundle) bundle).getModule(); ModuleRevision r = m.getCurrentRevision(); Generation g = (Generation) r.getRevisionInfo(); return g.getResourceBundle(locale); } }
/** * The getLocalization method gets a ResourceBundle object for the given * locale and bundle. * * @return A <code>ResourceBundle</code> object for the given bundle and locale. * If null is passed for the locale parameter, the default locale is used. */ public ResourceBundle getLocalization(Bundle bundle, String locale) { Module m = ((EquinoxBundle) bundle).getModule(); ModuleRevision r = m.getCurrentRevision(); Generation g = (Generation) r.getRevisionInfo(); return g.getResourceBundle(locale); } }
/** * The getLocalization method gets a ResourceBundle object for the given * locale and bundle. * * @return A <code>ResourceBundle</code> object for the given bundle and locale. * If null is passed for the locale parameter, the default locale is used. */ public ResourceBundle getLocalization(Bundle bundle, String locale) { Module m = ((EquinoxBundle) bundle).getModule(); ModuleRevision r = m.getCurrentRevision(); Generation g = (Generation) r.getRevisionInfo(); return g.getResourceBundle(locale); } }