|InteractiveSplashHandler and saving state [message #524077]
||Tue, 30 March 2010 15:10
Registered: February 2010
I'm using the InteractiveSplashHandler approach to handling the login on my RCP.|
When I go to authenticate I try and get a service (which I call a Session) through this code:
IWorkbench workbench = PlatformUI.getWorkbench();
ISourceProviderService sps = (ISourceProviderService) workbench.getService(ISourceProviderService.class);
Session session = (Session)sps.getSourceProvider(Constants.VariableIDSession);
But the sps is always null. I'm guessing something is not yet loaded.
Any tips on how best to achieve this? What is the best way to store user state in an RCP app?
(not sure what the actual auth will look like at the moment, could be a crypto key on the computer somewhere, or it could also be a database)
Powered by FUDForum
. Page generated in 0.01873 seconds