You're right, I forgot to update the metainf, damn be osgi :-)

Curiously though I can't reproduce the SV problem, I can select in the settings 
without problems.

What version of Eclipse are you using?

On 4 Mar 2013, at 09:23, Karlsson Christian <[email protected]> wrote:

> Hi
> I still find the jbehave-core-3.6.7.jar inside the 
> org.jbehave.eclipse_1.0.0.20130302-1055.jar plugin.
> So getting the same error message I’m afraid.
> org.jbehave.core.i18n.LocalizedKeywords$ResourceBundleNotFound: Resource 
> bundle i18n/keywords not found for locale sv in classLoader 
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@65231e76[org.jbehave.eclipse:1.0.0.20130302-1055(id=845)]
>                              at 
> org.jbehave.core.i18n.LocalizedKeywords.lookupBunde(LocalizedKeywords.java:62)
>                              at 
> org.jbehave.core.i18n.LocalizedKeywords.keywords(LocalizedKeywords.java:43)
>                              at 
> org.jbehave.core.i18n.LocalizedKeywords.<init>(LocalizedKeywords.java:33)
>                              at 
> org.jbehave.core.i18n.LocalizedKeywords.<init>(LocalizedKeywords.java:29)
>  
> Regards
> Christian
>  
>  
> Från: Mauro Talevi [mailto:[email protected]] 
> Skickat: den 2 mars 2013 12:04
> Till: [email protected]
> Ämne: Re: SV: [jbehave-user] Getting the Eclipse plugin to display all locales
>  
> I updated the plugin to ship with the latest version of core, which has the 
> correct SV bundle. 
> 
> Please try latest update. 
> 
> On 01/03/2013 09:23, Karlsson Christian wrote:
> Hi
> I can verify that I now get the Norwegian bundle to work.
> When selecting the Swedish one I get the following error:
> Problems occurred when invoking code from plug-in: "org.eclipse.jface".
> org.jbehave.core.i18n.LocalizedKeywords$ResourceBundleNotFound: Resource 
> bundle i18n/keywords not found for locale sv in classLoader 
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@3bfdd6e9[org.jbehave.eclipse:1.0.0.20130301-0641(id=827)]
>                              at 
> org.jbehave.core.i18n.LocalizedKeywords.lookupBunde(LocalizedKeywords.java:62)
>                              at 
> org.jbehave.core.i18n.LocalizedKeywords.keywords(LocalizedKeywords.java:43)
>                              at 
> org.jbehave.core.i18n.LocalizedKeywords.<init>(LocalizedKeywords.java:33)
>                              at 
> org.jbehave.core.i18n.LocalizedKeywords.<init>(LocalizedKeywords.java:29)
>                              at 
> org.jbehave.eclipse.preferences.ProjectPreferencePage.keywordsFor(ProjectPreferencePage.java:293)
>                              at 
> org.jbehave.eclipse.preferences.ProjectPreferencePage.access$0(ProjectPreferencePage.java:292)
>                              at 
> org.jbehave.eclipse.preferences.ProjectPreferencePage$KeywordTableLabelProvider.getColumnText(ProjectPreferencePage.java:288)
>                              at 
> org.eclipse.jface.viewers.TableColumnViewerLabelProvider.update(TableColumnViewerLabelProvider.java:70)
>                              at 
> org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:152)
>                              at 
> org.eclipse.jface.viewers.AbstractTableViewer.doUpdateItem(AbstractTableViewer.java:399)
>                              at 
> org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:485)
>                              at 
> org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>                              at 
> org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
>                              at 
> org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
>                              at 
> org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:2167)
>                              at 
> org.eclipse.jface.viewers.AbstractTableViewer.internalRefreshAll(AbstractTableViewer.java:711)
>                              at 
> org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:649)
>                              at 
> org.eclipse.jface.viewers.StructuredViewer$8.run(StructuredViewer.java:1535)
>                              at 
> org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1443)
>                              at 
> org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1404)
>                              at 
> org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1533)
>                              at 
> org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java:548)
>                              at 
> org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1490)
>                              at 
> org.jbehave.eclipse.preferences.ProjectPreferencePage.setLanguage(ProjectPreferencePage.java:173)
>                              at 
> org.jbehave.eclipse.preferences.ProjectPreferencePage.updatePageWithPrefs(ProjectPreferencePage.java:248)
>                              at 
> org.jbehave.eclipse.preferences.ProjectPreferencePage.performOk(ProjectPreferencePage.java:200)
>                              at 
> org.eclipse.jface.preference.PreferenceDialog$13.run(PreferenceDialog.java:965)
>                              at 
> org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>                              at 
> org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
>                              at 
> org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
>                              at 
> org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:945)
>                              at 
> org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.okPressed(FilteredPreferenceDialog.java:448)
>                              at 
> org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.okPressed(WorkbenchPreferenceDialog.java:171)
>                              at 
> org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:233)
>                              at 
> org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
>                              at 
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
>                              at 
> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>                              at 
> org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
>                              at 
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
>                              at 
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
>                              at 
> org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
>                              at 
> org.eclipse.jface.window.Window.open(Window.java:801)
>                              at 
> org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:215)
>                              at 
> org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:65)
>                              at 
> org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
>                              at 
> org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
>                              at 
> org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
>                              at 
> org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
>                              at 
> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>                              at 
> org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
>                              at 
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
>                              at 
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
>                              at 
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029)
>                              at 
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>                              at 
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
>                              at 
> org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
>                              at 
> org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
>                              at 
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>                              at 
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
>                              at 
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>                              at 
> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
>                              at 
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>                              at 
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>                              at 
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>                              at 
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
>                              at 
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
>                              at 
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>                              at 
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>                              at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>                              at java.lang.reflect.Method.invoke(Unknown 
> Source)
>                              at 
> org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
>                              at 
> org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
>                              at 
> org.eclipse.equinox.launcher.Main.run(Main.java:1438)
>                              at 
> org.eclipse.equinox.launcher.Main.main(Main.java:1414)
> Caused by: java.util.MissingResourceException: Can't find bundle for base 
> name i18n/keywords, locale sv
>                              at 
> java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
>                              at 
> java.util.ResourceBundle.getBundleImpl(Unknown Source)
>                              at java.util.ResourceBundle.getBundle(Unknown 
> Source)
>                              at 
> org.jbehave.core.i18n.LocalizedKeywords.lookupBunde(LocalizedKeywords.java:58)
>                              ... 73 more
>  
> When I look in the included core-3.6.7 jar I see it has a 
> keywords_se.properties.
> In the latest core-3.7.5 jar file the included locale is 
> keywords_sv.properties which seems more correct.
>  
> Thanks for quick response btw,
> Christian
>  
>  
> Från: Mauro Talevi [mailto:[email protected]] 
> Skickat: den 1 mars 2013 08:17
> Till: [email protected]
> Ämne: Re: [jbehave-user] Getting the Eclipse plugin to display all locales
>  
> The new update site has been uploaded :
> 
> http://jbehave.org/reference/eclipse/updates/
> 
> On 28/02/2013 11:57, Mauro Talevi wrote:
> Hi 
> 
> unfortunately, the locales need to be configured manually, for the moment at 
> least.   We could also introduce an AvailableLocales class in JBehave Core 
> that can be looked up at runtime .... 
> 
> In any case, the configuration has been updated but the new built has not 
> been republished to the update site:
> 
> https://github.com/jbehave/jbehave-eclipse/commit/25da8f4f2e2a277cbc55ef6c7c2f9f2d0bd55eae
>  
> 
> There are some build issues which are being fixed.  As soon as it's done, 
> we'll publish the new build. 
> 
> Cheers
> 
> On 27/02/2013 09:36, Karlsson Christian wrote:
> Hi
>  
> Is there anything one can do to get the JBehave Eclipse plugin to display all 
> the included locales in the preferences view?
> I don’t get the Norwegian nor the Swedish locales as choices in the drop 
> down. They are included in the jbehave core jar included in the plugin.
>  
> Thanks,
> Christian
>  
>  
>  

Reply via email to