I have just checked in some code that cleans up the file menu after the changes to support multiple open sessions in different windows.  While I was at it, I updated the actions to the new command handler architecture.  That should fix the problem below that Dimitri was having.
 
Nigel
-----Original Message-----
From: HERLA Dimitri [mailto:dimitri.herla@nrb.be]
Sent: Wednesday, January 14, 2009 12:38 AM
To: javaman2@miegel.org
Subject: jmoney problem ...

Hi Nigel,
 
Happy New Year 2009....
 
I synchronize my workbench with the last version from the repository.
I try with a fresh copy and i have a problem.
When I start, I have no session open. I use in the file menu the "New Action" => run in net.sf.jmoney.serializeddatastore.actions.
In this method, we call JMoneyPlugin.getDefault.setSessionManager...In this method, we call getSession which call getSessionManager... But the getSessionManager returned by this method is not the same as the one given to the JMoneyPlugin.getDefault.setSessionManager...
In this case, the session is null and thus the getIsoCurrency method in JMoneyPlugin throw a NullPointerEXception.....
 
Do you have the same problem ?
 
After i put the log ....
 
!SESSION 2009-01-14 08:04:04.328 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_07
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product net.sf.jmoney.product
Command-line arguments:  -product net.sf.jmoney.product -data C:\P06293\Backup\eclipse\eclipse-ganymede-rcp-SR1\workspaceJmoney/../runtime-jmoney.product -dev file:C:/P06293/Backup/eclipse/eclipse-ganymede-rcp-SR1/workspaceJmoney/.metadata/.plugins/org.eclipse.pde.core/jmoney-EN.product/dev.properties -os win32 -ws win32 -arch x86
 
!ENTRY org.eclipse.ui 4 0 2009-01-14 08:11:00.968
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
 at net.sf.jmoney.JMoneyPlugin.getIsoCurrency(JMoneyPlugin.java:297)
 at net.sf.jmoney.JMoneyPlugin.initSystemCurrency(JMoneyPlugin.java:356)
 at net.sf.jmoney.JMoneyPlugin.setSessionManager(JMoneyPlugin.java:238)
 at net.sf.jmoney.serializeddatastore.actions.NewSessionAction.run(NewSessionAction.java:59)
 at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
 at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
 at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
 at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
 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:1003)
 at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
 at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
 at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
 at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
 at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
 at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
 at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
 at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
 at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
 at net.sf.jmoney.JMoneyApplication.start(JMoneyApplication.java:63)
 at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
 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:386)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
 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:549)
 at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
 at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
 at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
 
Regards
 
Dimitri